source:
node_modules/@swagger-api/apidom-core/es/traversal/some.mjs
Last change on this file was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 251 bytes |
Line | |
---|---|
1 | import { isNotUndefined } from 'ramda-adjunct'; |
2 | import find from "./find.mjs"; // tests whether at least one element passes the predicate |
3 | const some = (predicate, element) => { |
4 | return isNotUndefined(find(predicate, element)); |
5 | }; |
6 | export default some; |
Note:
See TracBrowser
for help on using the repository browser.