MCPcopy
hub / github.com/validatorjs/validator.js / includes

Function includes

src/lib/util/includesArray.js:1–1  ·  view source on GitHub ↗
(arr, val)

Source from the content-addressed store, hash-verified

1const includes = (arr, val) => arr.some(arrVal => val === arrVal);
2
3export default includes;

Callers 7

checkAddressCodeFunction · 0.50
isDecimalFunction · 0.50
isLatLongFunction · 0.50
isJSONFunction · 0.50
hasValidIbanFormatFunction · 0.50
isURLFunction · 0.50
isBooleanFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected