Skip to content

Commit 274666d

Browse files
Neerajpathak07kgryte
authored andcommitted
remove: remove someOwnBy from namespace
This commit removes the `someOwnBy` symbol from the `@stdlib/utils` namespace due to a package migration. BREAKING CHANGE: remove `someOwnBy` To migrate, users should access the same symbol via the `@stdlib/object` namespace. Ref: #7374
1 parent 3abebe5 commit 274666d

File tree

2 files changed

+0
-42
lines changed

2 files changed

+0
-42
lines changed

lib/node_modules/@stdlib/utils/docs/types/index.d.ts

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ import sizeOf = require( '@stdlib/utils/size-of' );
201201
import some = require( '@stdlib/utils/some' );
202202
import someBy = require( '@stdlib/utils/some-by' );
203203
import someByRight = require( '@stdlib/utils/some-by-right' );
204-
import someOwnBy = require( '@stdlib/utils/some-own-by' );
205204
import tabulate = require( '@stdlib/utils/tabulate' );
206205
import tabulateBy = require( '@stdlib/utils/tabulate-by' );
207206
import timeit = require( '@stdlib/utils/timeit' );
@@ -5340,38 +5339,6 @@ interface Namespace {
53405339
*/
53415340
someByRight: typeof someByRight;
53425341

5343-
/**
5344-
* Tests whether an object contains at least `n` own properties which pass a test implemented by a predicate function.
5345-
*
5346-
* ## Notes
5347-
*
5348-
* - The predicate function is provided three arguments:
5349-
*
5350-
* - `value`: object value
5351-
* - `key`: object key
5352-
* - `obj`: the input object
5353-
*
5354-
* - The function immediately returns upon finding `n` successful properties.
5355-
*
5356-
* - If provided an empty object, the function returns `false`.
5357-
*
5358-
* @param obj - input object
5359-
* @param n - number of properties
5360-
* @param predicate - test function
5361-
* @returns boolean indicating whether an object contains at least `n` own properties which pass a test
5362-
*
5363-
* @example
5364-
* function isNegative( v ) {
5365-
* return ( v < 0 );
5366-
* }
5367-
*
5368-
* var obj = { a: 1, b: 2, c: -3, d: 4, e: -1 };
5369-
*
5370-
* var bool = ns.someOwnBy( obj, 2, isNegative );
5371-
* // returns true
5372-
*/
5373-
someOwnBy: typeof someOwnBy;
5374-
53755342
/**
53765343
* Generates a frequency table.
53775344
*

lib/node_modules/@stdlib/utils/lib/index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,15 +1669,6 @@ setReadOnly( utils, 'someBy', require( '@stdlib/utils/some-by' ) );
16691669
*/
16701670
setReadOnly( utils, 'someByRight', require( '@stdlib/utils/some-by-right' ) );
16711671

1672-
/**
1673-
* @name someOwnBy
1674-
* @memberof utils
1675-
* @readonly
1676-
* @type {Function}
1677-
* @see {@link module:@stdlib/utils/some-own-by}
1678-
*/
1679-
setReadOnly( utils, 'someOwnBy', require( '@stdlib/utils/some-own-by' ) );
1680-
16811672
/**
16821673
* @name tabulate
16831674
* @memberof utils

0 commit comments

Comments
 (0)