isKeyed()
True if maybeKeyed
is a Collection.Keyed, or any of its subclasses.
isKeyed(maybeKeyed: unknown): boolean
Discussion
const { isKeyed, Map, List, Stack } = require('immutable'); isKeyed([]); // false isKeyed({}); // false isKeyed(Map()); // true isKeyed(List()); // false isKeyed(Stack()); // falserun it
© 2014–present, Lee Byron and other contributors
Licensed under the 3-clause BSD License.
https://immutable-js.com/docs/v4.0.0/isKeyed()/