isAssociative()

True if maybeAssociative is either a Keyed or Indexed Collection.

isAssociative(maybeAssociative: unknown): boolean

Discussion

const { isAssociative, Map, List, Stack, Set } = require('immutable'); isAssociative([]); // false isAssociative({}); // false isAssociative(Map()); // true isAssociative(List()); // true isAssociative(Stack()); // true isAssociative(Set()); // falserun it
This documentation is generated from immutable.d.ts. Pull requests and Issues welcome.