Skip to content

Commit ab4c16a

Browse files
remove: remove objectInverse from namespace
This commit removes the `objectInverse` symbol from the `@stdlib/utils` namespace due to a package migration. BREAKING CHANGE: remove `objectInverse` To migrate, users should access the same symbol via the `@stdlib/object` namespace. Ref: #8755
1 parent 0705bb1 commit ab4c16a

2 files changed

Lines changed: 0 additions & 45 deletions

File tree

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

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ import nonEnumerablePropertySymbols = require( '@stdlib/utils/nonenumerable-prop
151151
import nonEnumerablePropertySymbolsIn = require( '@stdlib/utils/nonenumerable-property-symbols-in' );
152152
import nonIndexKeys = require( '@stdlib/utils/nonindex-keys' );
153153
import noop = require( '@stdlib/utils/noop' );
154-
import objectInverse = require( '@stdlib/utils/object-inverse' );
155154
import objectInverseBy = require( '@stdlib/utils/object-inverse-by' );
156155
import omit = require( '@stdlib/utils/omit' );
157156
import omitBy = require( '@stdlib/utils/omit-by' );
@@ -4016,41 +4015,6 @@ interface Namespace {
40164015
*/
40174016
noop: typeof noop;
40184017

4019-
/**
4020-
* Inverts an object, such that keys become values and values become keys.
4021-
*
4022-
* @param obj - input object
4023-
* @param options - function options
4024-
* @param options.duplicates - boolean indicating whether to store duplicate keys (default: true)
4025-
* @returns inverted object
4026-
*
4027-
* @example
4028-
* var out = ns.objectInverse({
4029-
* 'a': 'beep',
4030-
* 'b': 'boop'
4031-
* });
4032-
* // returns { 'beep': 'a', 'boop': 'b' }
4033-
*
4034-
* @example
4035-
* var out = ns.objectInverse({
4036-
* 'a': 'beep',
4037-
* 'b': 'beep'
4038-
* });
4039-
* // returns { 'beep': [ 'a', 'b' ] }
4040-
*
4041-
* @example
4042-
* var obj = {};
4043-
* obj.a = 'beep';
4044-
* obj.b = 'boop';
4045-
* obj.c = 'beep'; // inserted after `a`
4046-
*
4047-
* var out = ns.objectInverse( obj, {
4048-
* 'duplicates': false
4049-
* });
4050-
* // returns { 'beep': 'c', 'boop': 'b' }
4051-
*/
4052-
objectInverse: typeof objectInverse;
4053-
40544018
/**
40554019
* Inverts an object, such that keys become values and values become keys, according to a transform function.
40564020
*

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,15 +1219,6 @@ setReadOnly( utils, 'nonIndexKeys', require( '@stdlib/utils/nonindex-keys' ) );
12191219
*/
12201220
setReadOnly( utils, 'noop', require( '@stdlib/utils/noop' ) );
12211221

1222-
/**
1223-
* @name objectInverse
1224-
* @memberof utils
1225-
* @readonly
1226-
* @type {Function}
1227-
* @see {@link module:@stdlib/utils/object-inverse}
1228-
*/
1229-
setReadOnly( utils, 'objectInverse', require( '@stdlib/utils/object-inverse' ) );
1230-
12311222
/**
12321223
* @name objectInverseBy
12331224
* @memberof utils

0 commit comments

Comments
 (0)