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