8.0.0 • Published 7 years ago

@unction/key v8.0.0

Weekly downloads
14
License
ISC
Repository
github
Last release
7 years ago

@unction/key

Tests Stability Dependencies

KeyType -> mixed -> ValueType

Returns the value of a specific key on an iterable. If no key is found it returns undefined. If the second argument isn't an iterable we return undefined, to allow for graceful failure.

key("aaa")({aaa: "1"}) // "1"
key("bbb")({aaa: "1"}) // undefined
key("bbb")(undefined) // undefined
key(0)(["aaa"]) // "aaa"
8.0.0

7 years ago

7.0.0

8 years ago

6.0.0

8 years ago

5.0.0

8 years ago

4.12.0

8 years ago

4.11.0

8 years ago

4.9.0

8 years ago

4.10.0

8 years ago

4.8.0

8 years ago

4.7.0

8 years ago

4.6.0

8 years ago

4.5.0

8 years ago

4.4.0

8 years ago

4.2.0

8 years ago

4.0.2

8 years ago

4.0.1

8 years ago

4.0.0

8 years ago

3.0.0

8 years ago

2.0.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago