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
This documentation is generated from immutable.d.ts. Pull requests and Issues welcome.