package.es.traversal.some.mjs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apidom-core Show documentation
Show all versions of apidom-core Show documentation
Tools for manipulating ApiDOM structures.
The newest version!
import { isNotUndefined } from 'ramda-adjunct';
import find from "./find.mjs"; // tests whether at least one element passes the predicate
const some = (predicate, element) => {
return isNotUndefined(find(predicate, element));
};
export default some;