Licence
SEE LICENSE IN LICENSE
Version
2.13.0
Deps
3
Size
14 kB
Vulns
0
Weekly
0
@unction/getMany
Array => Array | Set | Record<string | number | symbol, B> | Map<B, A> | string => Array
Takes a list of keys and a keyed enumerable, and returns the values for those keys. If no key exists, the value is undefined.
getMany(["aaa", "bbb"])({aaa: "111", bbb: "222"}) // ["111", "222"]
getMany(["aaa", "ccc"])({aaa: "111", bbb: "222"}) // ["111", undefined]