Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/namespace/alias2pkg/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@ bifurcate,"@stdlib/utils/bifurcate"
bifurcateBy,"@stdlib/utils/bifurcate-by"
bifurcateByAsync,"@stdlib/utils/async/bifurcate-by"
bifurcateIn,"@stdlib/object/bifurcate-in"
bifurcateOwn,"@stdlib/utils/bifurcate-own"
bifurcateOwn,"@stdlib/object/bifurcate-own"
BigInt,"@stdlib/bigint/ctor"
binomialTest,"@stdlib/stats/binomial-test"
Boolean,"@stdlib/boolean/ctor"
Expand Down
8 changes: 4 additions & 4 deletions lib/node_modules/@stdlib/namespace/lib/namespace/b.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ns.push({
'type': 'Function',
'related': [
'@stdlib/utils/bifurcate-by',
'@stdlib/utils/bifurcate-own',
'@stdlib/object/bifurcate-own',
'@stdlib/utils/group'
]
});
Expand Down Expand Up @@ -108,15 +108,15 @@ ns.push({
'related': [
'@stdlib/utils/bifurcate',
'@stdlib/utils/bifurcate-by',
'@stdlib/utils/bifurcate-own',
'@stdlib/object/bifurcate-own',
'@stdlib/utils/group-in'
]
});

ns.push({
'alias': 'bifurcateOwn',
'path': '@stdlib/utils/bifurcate-own',
'value': require( '@stdlib/utils/bifurcate-own' ),
'path': '@stdlib/object/bifurcate-own',
'value': require( '@stdlib/object/bifurcate-own' ),
'type': 'Function',
'related': [
'@stdlib/utils/bifurcate',
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/namespace/lib/namespace/g.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ ns.push({
'value': require( '@stdlib/utils/group-own' ),
'type': 'Function',
'related': [
'@stdlib/utils/bifurcate-own',
'@stdlib/object/bifurcate-own',
'@stdlib/utils/count-own',
'@stdlib/utils/group',
'@stdlib/utils/group-by'
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/namespace/pkg2alias/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@
"@stdlib/utils/bifurcate-by",bifurcateBy
"@stdlib/utils/async/bifurcate-by",bifurcateByAsync
"@stdlib/object/bifurcate-in",bifurcateIn
"@stdlib/utils/bifurcate-own",bifurcateOwn
"@stdlib/object/bifurcate-own",bifurcateOwn
"@stdlib/bigint/ctor",BigInt
"@stdlib/stats/binomial-test",binomialTest
"@stdlib/boolean/ctor",Boolean
Expand Down
8 changes: 4 additions & 4 deletions lib/node_modules/@stdlib/namespace/pkg2related/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1495,11 +1495,11 @@
"@stdlib/math/base/special/riemann-zeta",""
"@stdlib/bench","@stdlib/utils/timeit"
"@stdlib/datasets/berndt-cps-wages-1985",""
"@stdlib/utils/bifurcate","@stdlib/utils/bifurcate-by,@stdlib/utils/bifurcate-own,@stdlib/utils/group"
"@stdlib/utils/bifurcate","@stdlib/utils/bifurcate-by,@stdlib/object/bifurcate-own,@stdlib/utils/group"
"@stdlib/utils/bifurcate-by","@stdlib/utils/bifurcate,@stdlib/utils/group-by"
"@stdlib/utils/async/bifurcate-by","@stdlib/utils/bifurcate-by,@stdlib/utils/async/group-by"
"@stdlib/object/bifurcate-in","@stdlib/utils/bifurcate,@stdlib/utils/bifurcate-by,@stdlib/utils/bifurcate-own,@stdlib/utils/group-in"
"@stdlib/utils/bifurcate-own","@stdlib/utils/bifurcate,@stdlib/utils/bifurcate-by,@stdlib/object/bifurcate-in,@stdlib/utils/group-own"
"@stdlib/object/bifurcate-in","@stdlib/utils/bifurcate,@stdlib/utils/bifurcate-by,@stdlib/object/bifurcate-own,@stdlib/utils/group-in"
"@stdlib/object/bifurcate-own","@stdlib/utils/bifurcate,@stdlib/utils/bifurcate-by,@stdlib/object/bifurcate-in,@stdlib/utils/group-own"
"@stdlib/bigint/ctor",""
"@stdlib/stats/binomial-test",""
"@stdlib/boolean/ctor",""
Expand Down Expand Up @@ -1777,7 +1777,7 @@
"@stdlib/utils/group-by","@stdlib/utils/bifurcate-by,@stdlib/utils/count-by,@stdlib/utils/group"
"@stdlib/utils/async/group-by","@stdlib/utils/async/bifurcate-by,@stdlib/utils/async/count-by,@stdlib/utils/group-by"
"@stdlib/utils/group-in","@stdlib/object/bifurcate-in,@stdlib/utils/group-by,@stdlib/utils/group-own"
"@stdlib/utils/group-own","@stdlib/utils/bifurcate-own,@stdlib/utils/group,@stdlib/utils/group-by"
"@stdlib/utils/group-own","@stdlib/object/bifurcate-own,@stdlib/utils/group,@stdlib/utils/group-by"
"@stdlib/blas/gswap","@stdlib/blas/base/gswap,@stdlib/blas/dswap,@stdlib/blas/sswap"
"@stdlib/constants/float64/half-ln-two","@stdlib/constants/float64/ln-two"
"@stdlib/constants/float64/half-pi","@stdlib/constants/float64/pi"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@
"@stdlib/utils/bifurcate-by","@stdlib/utils-bifurcate-by"
"@stdlib/utils/async/bifurcate-by","@stdlib/utils-async-bifurcate-by"
"@stdlib/object/bifurcate-in","@stdlib/object-bifurcate-in"
"@stdlib/utils/bifurcate-own","@stdlib/utils-bifurcate-own"
"@stdlib/object/bifurcate-own","@stdlib/object-bifurcate-own"
"@stdlib/bigint/ctor","@stdlib/bigint-ctor"
"@stdlib/stats/binomial-test","@stdlib/stats-binomial-test"
"@stdlib/boolean/ctor","@stdlib/boolean-ctor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@
"@stdlib/utils-bifurcate-by","@stdlib/utils/bifurcate-by"
"@stdlib/utils-async-bifurcate-by","@stdlib/utils/async/bifurcate-by"
"@stdlib/object-bifurcate-in","@stdlib/object/bifurcate-in"
"@stdlib/utils-bifurcate-own","@stdlib/utils/bifurcate-own"
"@stdlib/object-bifurcate-own","@stdlib/object/bifurcate-own"
"@stdlib/bigint-ctor","@stdlib/bigint/ctor"
"@stdlib/stats-binomial-test","@stdlib/stats/binomial-test"
"@stdlib/boolean-ctor","@stdlib/boolean/ctor"
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/object/bifurcate-in/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ console.log( out );

- <span class="package-name">[`@stdlib/utils/bifurcate`][@stdlib/utils/bifurcate]</span><span class="delimiter">: </span><span class="description">split values into two groups.</span>
- <span class="package-name">[`@stdlib/utils/bifurcate-by`][@stdlib/utils/bifurcate-by]</span><span class="delimiter">: </span><span class="description">split values into two groups according to a predicate function.</span>
- <span class="package-name">[`@stdlib/utils/bifurcate-own`][@stdlib/utils/bifurcate-own]</span><span class="delimiter">: </span><span class="description">split an object's own property values into two groups according to a predicate function.</span>
- <span class="package-name">[`@stdlib/object/bifurcate-own`][@stdlib/object/bifurcate-own]</span><span class="delimiter">: </span><span class="description">split an object's own property values into two groups according to a predicate function.</span>
- <span class="package-name">[`@stdlib/utils/group-in`][@stdlib/utils/group-in]</span><span class="delimiter">: </span><span class="description">group an object's own and inherited property values according to an indicator function.</span>

</section>
Expand All @@ -287,7 +287,7 @@ console.log( out );

[@stdlib/utils/bifurcate-by]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/bifurcate-by

[@stdlib/utils/bifurcate-own]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/bifurcate-own
[@stdlib/object/bifurcate-own]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/bifurcate-own

[@stdlib/utils/group-in]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/group-in

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ limitations under the License.
## Usage

```javascript
var bifurcateOwn = require( '@stdlib/utils/bifurcate-own' );
var bifurcateOwn = require( '@stdlib/object/bifurcate-own' );
```

#### bifurcateOwn( obj, \[options,] predicate )
Expand Down Expand Up @@ -180,7 +180,7 @@ console.log( context.count );
```javascript
var randu = require( '@stdlib/random/base/randu' );
var fromCodePoint = require( '@stdlib/string/from-code-point' );
var bifurcateOwn = require( '@stdlib/utils/bifurcate-own' );
var bifurcateOwn = require( '@stdlib/object/bifurcate-own' );

var key;
var obj;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
/**
* Split an object's own property values into two groups according to a predicate function.
*
* @module @stdlib/utils/bifurcate-own
* @module @stdlib/object/bifurcate-own
*
* @example
* var bifurcateOwn = require( '@stdlib/utils/bifurcate-own' );
* var bifurcateOwn = require( '@stdlib/object/bifurcate-own' );
*
* function predicate( v ) {
* return v[ 0 ] === 'b';
Expand All @@ -40,7 +40,7 @@
* // e.g., returns [ [ 'beep', 'boop', 'bar' ], [ 'foo' ] ]
*
* @example
* var bifurcateOwn = require( '@stdlib/utils/bifurcate-own' );
* var bifurcateOwn = require( '@stdlib/object/bifurcate-own' );
*
* function predicate( v ) {
* return v[ 0 ] === 'b';
Expand All @@ -59,7 +59,7 @@
* // e.g., returns [ [ 'a', 'b', 'd' ], [ 'c' ] ]
*
* @example
* var bifurcateOwn = require( '@stdlib/utils/bifurcate-own' );
* var bifurcateOwn = require( '@stdlib/object/bifurcate-own' );
*
* function predicate( v ) {
* return v[ 0 ] === 'b';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@stdlib/utils/bifurcate-own",
"name": "@stdlib/object/bifurcate-own",
"version": "0.0.0",
"description": "Split an object's own property values into two groups according to a predicate function.",
"license": "Apache-2.0",
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/utils/bifurcate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ console.log( out );
## See Also

- <span class="package-name">[`@stdlib/utils/bifurcate-by`][@stdlib/utils/bifurcate-by]</span><span class="delimiter">: </span><span class="description">split values into two groups according to a predicate function.</span>
- <span class="package-name">[`@stdlib/utils/bifurcate-own`][@stdlib/utils/bifurcate-own]</span><span class="delimiter">: </span><span class="description">split an object's own property values into two groups according to a predicate function.</span>
- <span class="package-name">[`@stdlib/object/bifurcate-own`][@stdlib/object/bifurcate-own]</span><span class="delimiter">: </span><span class="description">split an object's own property values into two groups according to a predicate function.</span>
- <span class="package-name">[`@stdlib/utils/group`][@stdlib/utils/group]</span><span class="delimiter">: </span><span class="description">group values as arrays associated with distinct keys.</span>

</section>
Expand All @@ -180,7 +180,7 @@ console.log( out );

[@stdlib/utils/bifurcate-by]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/bifurcate-by

[@stdlib/utils/bifurcate-own]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/bifurcate-own
[@stdlib/object/bifurcate-own]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/bifurcate-own

[@stdlib/utils/group]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/group

Expand Down
58 changes: 0 additions & 58 deletions lib/node_modules/@stdlib/utils/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import argumentFunction = require( '@stdlib/utils/argument-function' );
import async = require( '@stdlib/utils/async' );
import bifurcate = require( '@stdlib/utils/bifurcate' );
import bifurcateBy = require( '@stdlib/utils/bifurcate-by' );
import bifurcateOwn = require( '@stdlib/utils/bifurcate-own' );
import compose = require( '@stdlib/utils/compose' );
import constantFunction = require( '@stdlib/utils/constant-function' );
import constructorName = require( '@stdlib/utils/constructor-name' );
Expand Down Expand Up @@ -436,63 +435,6 @@ interface Namespace {
*/
bifurcateBy: typeof bifurcateBy;

/**
* Splits an object's own property values into two groups according to a predicate function.
*
* @param obj - input object
* @param options - function options
* @param options.thisArg - execution context
* @param options.returns - if `'values'`, values are returned; if `'keys'`, keys are returned; if `'*'`, both keys and values are returned
* @param predicate - predicate function indicating which group an element in the input object belongs to
* @returns group results
*
* @example
* function predicate( v ) {
* return v[ 0 ] === 'b';
* }
* var obj = {
* 'a': 'beep',
* 'b': 'boop',
* 'c': 'foo',
* 'd': 'bar'
* };
* var out = ns.bifurcateOwn( obj, predicate );
* // e.g., returns [ [ 'beep', 'boop', 'bar' ], [ 'foo' ] ]
*
* @example
* function predicate( v ) {
* return v[ 0 ] === 'b';
* }
* var obj = {
* 'a': 'beep',
* 'b': 'boop',
* 'c': 'foo',
* 'd': 'bar'
* };
* var opts = {
* 'returns': 'keys'
* };
* var out = ns.bifurcateOwn( obj, opts, predicate );
* // e.g., returns [ [ 'a', 'b', 'd' ], [ 'c' ] ]
*
* @example
* function predicate( v ) {
* return v[ 0 ] === 'b';
* }
* var obj = {
* 'a': 'beep',
* 'b': 'boop',
* 'c': 'foo',
* 'd': 'bar'
* };
* var opts = {
* 'returns': '*'
* };
* var out = ns.bifurcateOwn( obj, opts, predicate );
* // e.g., returns [ [ [ 'a', 'beep' ], [ 'b', 'boop' ], [ 'd', 'bar' ] ], [ [ 'c', 'foo' ] ] ]
*/
bifurcateOwn: typeof bifurcateOwn;

/**
* Function composition.
*
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/utils/group-own/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ console.log( out );

## See Also

- <span class="package-name">[`@stdlib/utils/bifurcate-own`][@stdlib/utils/bifurcate-own]</span><span class="delimiter">: </span><span class="description">split an object's own property values into two groups according to a predicate function.</span>
- <span class="package-name">[`@stdlib/object/bifurcate-own`][@stdlib/object/bifurcate-own]</span><span class="delimiter">: </span><span class="description">split an object's own property values into two groups according to a predicate function.</span>
- <span class="package-name">[`@stdlib/utils/group`][@stdlib/utils/group]</span><span class="delimiter">: </span><span class="description">group values as arrays associated with distinct keys.</span>
- <span class="package-name">[`@stdlib/utils/group-by`][@stdlib/utils/group-by]</span><span class="delimiter">: </span><span class="description">group values according to an indicator function.</span>

Expand All @@ -262,7 +262,7 @@ console.log( out );

<!-- <related-links> -->

[@stdlib/utils/bifurcate-own]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/bifurcate-own
[@stdlib/object/bifurcate-own]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/object/bifurcate-own

[@stdlib/utils/group]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/utils/group

Expand Down
9 changes: 0 additions & 9 deletions lib/node_modules/@stdlib/utils/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,6 @@ setReadOnly( utils, 'bifurcate', require( '@stdlib/utils/bifurcate' ) );
*/
setReadOnly( utils, 'bifurcateBy', require( '@stdlib/utils/bifurcate-by' ) );

/**
* @name bifurcateOwn
* @memberof utils
* @readonly
* @type {Function}
* @see {@link module:@stdlib/utils/bifurcate-own}
*/
setReadOnly( utils, 'bifurcateOwn', require( '@stdlib/utils/bifurcate-own' ) );

/**
* @name compose
* @memberof utils
Expand Down
Loading