+5
-5
lines changedFilter options
+5
-5
lines changed Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
1
-
import idendity from './identity'
1
+
import identity from './identity'
2
2
import { isArray, isObject } from './inspect'
3
3
4
4
const RX_ARRAY_NOTATION = /\[(\d+)]/g
@@ -33,7 +33,7 @@ const get = (obj, path, defaultValue = null) => {
33
33
// Handle string array notation (numeric indices only)
34
34
path = String(path).replace(RX_ARRAY_NOTATION, '.$1')
35
35
36
-
const steps = path.split('.').filter(idendity)
36
+
const steps = path.split('.').filter(identity)
37
37
38
38
// Handle case where someone passes a string of only dots
39
39
if (steps.length === 0) {
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
1
-
import idendity from './identity'
1
+
import identity from './identity'
2
2
import { concat } from './array'
3
3
import { isFunction } from './inspect'
4
4
@@ -17,7 +17,7 @@ import { isFunction } from './inspect'
17
17
*/
18
18
const hasNormalizedSlot = (names, $scopedSlots = {}, $slots = {}) => {
19
19
// Ensure names is an array
20
-
names = concat(names).filter(idendity)
20
+
names = concat(names).filter(identity)
21
21
// Returns true if the either a $scopedSlot or $slot exists with the specified name
22
22
return names.some(name => $scopedSlots[name] || $slots[name])
23
23
}
@@ -33,7 +33,7 @@ const hasNormalizedSlot = (names, $scopedSlots = {}, $slots = {}) => {
33
33
*/
34
34
const normalizeSlot = (names, scope = {}, $scopedSlots = {}, $slots = {}) => {
35
35
// Ensure names is an array
36
-
names = concat(names).filter(idendity)
36
+
names = concat(names).filter(identity)
37
37
let slot
38
38
for (let i = 0; i < names.length && !slot; i++) {
39
39
const name = names[i]
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4