We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a296a9 commit 8241157Copy full SHA for 8241157
src/mnml.ts
@@ -283,11 +283,11 @@ export const mnml = (() => {
283
params.cache = {} as { [key: string]: any };
284
285
const any = (things: any[]): boolean => {
286
- return things.filter((thing) => !!thing).length > 0;
+ return things.some((thing) => !!thing);
287
};
288
289
const all = (things: any[]): boolean => {
290
- return things.filter((thing) => !!thing).length === things.length;
+ return things.every((thing) => !!thing);
291
292
293
return {
0 commit comments