MCPcopy Index your code
hub / github.com/nodejs/node / isPack

Function isPack

test/parallel/test-icu-env.js:59–62  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

57}
58
59function isPack(array) {
60 const firstItem = array[0];
61 return array.every((item) => item === firstItem);
62}
63
64function isSet(array) {
65 const deduped = new Set(array);

Callers 1

test-icu-env.jsFile · 0.85

Calls 1

everyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…