Determines whether the array type A contains any elements that satisfies the specified Criteria type.
A
Criteria
It operates in loose mode by default, which means literal types satisfies their widened counterparts.
loose
You can also change it to strict mode.
strict
🦴 utilities
Some<string[], string> // trueSome<['a', boolean], boolean> // trueSome<['a', true], boolean> //trueSome<['a', true], boolean, 'strict'> // false Copy
Some<string[], string> // trueSome<['a', boolean], boolean> // trueSome<['a', true], boolean> //trueSome<['a', true], boolean, 'strict'> // false
Determines whether the array type
Acontains any elements that satisfies the specifiedCriteriatype.It operates in
loosemode by default, which means literal types satisfies their widened counterparts.You can also change it to
strictmode.🦴 utilities