MCPcopy
hub / github.com/immutable-js/immutable-js / count

Function count

src/CollectionImpl.js:296–300  ·  view source on GitHub ↗
(predicate, context)

Source from the content-addressed store, hash-verified

294 },
295
296 count(predicate, context) {
297 return ensureSize(
298 predicate ? this.toSeq().filter(predicate, context) : this
299 );
300 },
301
302 countBy(grouper, context) {
303 return countByFactory(this, grouper, context);

Callers

nothing calls this directly

Calls 3

ensureSizeFunction · 0.90
filterMethod · 0.65
toSeqMethod · 0.65

Tested by

no test coverage detected