Skip to content

Commit 2af3d97

Browse files
Neerajpathak07kgryte
authored andcommitted
remove: remove bifurcateOwn from namespace
This commit removes the `bifurcateOwn` symbol from the `@stdlib/utils` namespace due to a package migration. BREAKING CHANGE: remove `bifurcateOwn` To migrate, users should access the same symbol via the `@stdlib/object` namespace. Ref: #8755
1 parent 2e1dd2a commit 2af3d97

File tree

2 files changed

+0
-67
lines changed

2 files changed

+0
-67
lines changed

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

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import argumentFunction = require( '@stdlib/utils/argument-function' );
2828
import async = require( '@stdlib/utils/async' );
2929
import bifurcate = require( '@stdlib/utils/bifurcate' );
3030
import bifurcateBy = require( '@stdlib/utils/bifurcate-by' );
31-
import bifurcateOwn = require( '@stdlib/utils/bifurcate-own' );
3231
import compose = require( '@stdlib/utils/compose' );
3332
import constantFunction = require( '@stdlib/utils/constant-function' );
3433
import constructorName = require( '@stdlib/utils/constructor-name' );
@@ -436,63 +435,6 @@ interface Namespace {
436435
*/
437436
bifurcateBy: typeof bifurcateBy;
438437

439-
/**
440-
* Splits an object's own property values into two groups according to a predicate function.
441-
*
442-
* @param obj - input object
443-
* @param options - function options
444-
* @param options.thisArg - execution context
445-
* @param options.returns - if `'values'`, values are returned; if `'keys'`, keys are returned; if `'*'`, both keys and values are returned
446-
* @param predicate - predicate function indicating which group an element in the input object belongs to
447-
* @returns group results
448-
*
449-
* @example
450-
* function predicate( v ) {
451-
* return v[ 0 ] === 'b';
452-
* }
453-
* var obj = {
454-
* 'a': 'beep',
455-
* 'b': 'boop',
456-
* 'c': 'foo',
457-
* 'd': 'bar'
458-
* };
459-
* var out = ns.bifurcateOwn( obj, predicate );
460-
* // e.g., returns [ [ 'beep', 'boop', 'bar' ], [ 'foo' ] ]
461-
*
462-
* @example
463-
* function predicate( v ) {
464-
* return v[ 0 ] === 'b';
465-
* }
466-
* var obj = {
467-
* 'a': 'beep',
468-
* 'b': 'boop',
469-
* 'c': 'foo',
470-
* 'd': 'bar'
471-
* };
472-
* var opts = {
473-
* 'returns': 'keys'
474-
* };
475-
* var out = ns.bifurcateOwn( obj, opts, predicate );
476-
* // e.g., returns [ [ 'a', 'b', 'd' ], [ 'c' ] ]
477-
*
478-
* @example
479-
* function predicate( v ) {
480-
* return v[ 0 ] === 'b';
481-
* }
482-
* var obj = {
483-
* 'a': 'beep',
484-
* 'b': 'boop',
485-
* 'c': 'foo',
486-
* 'd': 'bar'
487-
* };
488-
* var opts = {
489-
* 'returns': '*'
490-
* };
491-
* var out = ns.bifurcateOwn( obj, opts, predicate );
492-
* // e.g., returns [ [ [ 'a', 'beep' ], [ 'b', 'boop' ], [ 'd', 'bar' ] ], [ [ 'c', 'foo' ] ] ]
493-
*/
494-
bifurcateOwn: typeof bifurcateOwn;
495-
496438
/**
497439
* Function composition.
498440
*

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,6 @@ setReadOnly( utils, 'bifurcate', require( '@stdlib/utils/bifurcate' ) );
112112
*/
113113
setReadOnly( utils, 'bifurcateBy', require( '@stdlib/utils/bifurcate-by' ) );
114114

115-
/**
116-
* @name bifurcateOwn
117-
* @memberof utils
118-
* @readonly
119-
* @type {Function}
120-
* @see {@link module:@stdlib/utils/bifurcate-own}
121-
*/
122-
setReadOnly( utils, 'bifurcateOwn', require( '@stdlib/utils/bifurcate-own' ) );
123-
124115
/**
125116
* @name compose
126117
* @memberof utils

0 commit comments

Comments
 (0)