@@ -2026,6 +2026,32 @@ Checks if two objects are deeply equal.
20262026` ` `
20272027<!-- prettier-ignore-end -->
20282028
2029+ #### some
2030+
2031+ Test if every element passes the given predicate.
2032+
2033+ ##### Type signature
2034+
2035+ <!-- prettier-ignore-start -->
2036+ ` ` ` typescript
2037+ (
2038+ f : (value : any , key : string , context : object ) => boolean
2039+ ) => (xs : object ) => boolean
2040+ ` ` `
2041+ <!-- prettier-ignore-end -->
2042+
2043+ ##### Examples
2044+
2045+ <!-- prettier-ignore-start -->
2046+ ` ` ` javascript
2047+ every (x => x >= 0 )({ x: 5 , y: 3 , z: 0 }); // ⇒ true
2048+ ` ` `
2049+
2050+ ` ` ` javascript
2051+ every (x => x > 0 )({ x: 5 , y: 3 , z: 0 }); // ⇒ false
2052+ ` ` `
2053+ <!-- prettier-ignore-end -->
2054+
20292055#### filter
20302056
20312057Filters the given object with the given predicate.
@@ -2271,6 +2297,32 @@ Checks if the given object is empty.
22712297` ` `
22722298<!-- prettier-ignore-end -->
22732299
2300+ #### some
2301+
2302+ Test if any element passes the given predicate.
2303+
2304+ ##### Type signature
2305+
2306+ <!-- prettier-ignore-start -->
2307+ ` ` ` typescript
2308+ (
2309+ f : (value : any , key : string , context : object ) => boolean
2310+ ) => (xs : object ) => boolean
2311+ ` ` `
2312+ <!-- prettier-ignore-end -->
2313+
2314+ ##### Examples
2315+
2316+ <!-- prettier-ignore-start -->
2317+ ` ` ` javascript
2318+ some (x => x >= 4 )({ x: 5 , y: 3 , z: 0 }); // ⇒ true
2319+ ` ` `
2320+
2321+ ` ` ` javascript
2322+ some (x => x < 0 )({ x: 5 , y: 3 , z: 0 }); // ⇒ false
2323+ ` ` `
2324+ <!-- prettier-ignore-end -->
2325+
22742326#### sort
22752327
22762328Sorts the given object by a comparator.
0 commit comments