From 1633c420e200b5ce67389ef15a34b44e05494d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20M=C3=BCller?= Date: Thu, 9 Jan 2020 09:09:02 +0100 Subject: [PATCH] fix(utils): correct `identity` spelling error --- src/utils/get.js | 4 ++-- src/utils/normalize-slot.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utils/get.js b/src/utils/get.js index 42bb36ad073..8984ddc2b59 100644 --- a/src/utils/get.js +++ b/src/utils/get.js @@ -1,4 +1,4 @@ -import idendity from './identity' +import identity from './identity' import { isArray, isObject } from './inspect' const RX_ARRAY_NOTATION = /\[(\d+)]/g @@ -33,7 +33,7 @@ const get = (obj, path, defaultValue = null) => { // Handle string array notation (numeric indices only) path = String(path).replace(RX_ARRAY_NOTATION, '.$1') - const steps = path.split('.').filter(idendity) + const steps = path.split('.').filter(identity) // Handle case where someone passes a string of only dots if (steps.length === 0) { diff --git a/src/utils/normalize-slot.js b/src/utils/normalize-slot.js index 71c8b4161c2..839e93057fa 100644 --- a/src/utils/normalize-slot.js +++ b/src/utils/normalize-slot.js @@ -1,4 +1,4 @@ -import idendity from './identity' +import identity from './identity' import { concat } from './array' import { isFunction } from './inspect' @@ -17,7 +17,7 @@ import { isFunction } from './inspect' */ const hasNormalizedSlot = (names, $scopedSlots = {}, $slots = {}) => { // Ensure names is an array - names = concat(names).filter(idendity) + names = concat(names).filter(identity) // Returns true if the either a $scopedSlot or $slot exists with the specified name return names.some(name => $scopedSlots[name] || $slots[name]) } @@ -33,7 +33,7 @@ const hasNormalizedSlot = (names, $scopedSlots = {}, $slots = {}) => { */ const normalizeSlot = (names, scope = {}, $scopedSlots = {}, $slots = {}) => { // Ensure names is an array - names = concat(names).filter(idendity) + names = concat(names).filter(identity) let slot for (let i = 0; i < names.length && !slot; i++) { const name = names[i]