Skip to content

Commit 3d36cfe

Browse files
Neerajpathak07kgryte
authored andcommitted
remove: remove commonKeys from namespace
This commit removes the `commonKeys` symbol from the `@stdlib/utils` namespace due to a package migration. BREAKING CHANGE: remove `commonKeys` To migrate, users should access the same symbol via the `@stdlib/object` namespace. Ref: stdlib-js#8755
1 parent 8b9db49 commit 3d36cfe

2 files changed

Lines changed: 0 additions & 54 deletions

File tree

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

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import bifurcate = require( '@stdlib/utils/bifurcate' );
3030
import bifurcateBy = require( '@stdlib/utils/bifurcate-by' );
3131
import bifurcateIn = require( '@stdlib/utils/bifurcate-in' );
3232
import bifurcateOwn = require( '@stdlib/utils/bifurcate-own' );
33-
import commonKeys = require( '@stdlib/utils/common-keys' );
3433
import commonKeysIn = require( '@stdlib/utils/common-keys-in' );
3534
import compose = require( '@stdlib/utils/compose' );
3635
import constantFunction = require( '@stdlib/utils/constant-function' );
@@ -571,50 +570,6 @@ interface Namespace {
571570
*/
572571
bifurcateOwn: typeof bifurcateOwn;
573572

574-
/**
575-
* Returns the common own property names of two or more objects.
576-
*
577-
* @param obj1 - first object
578-
* @param obj2 - second object
579-
* @param obj - additional objects
580-
* @returns common keys of objects
581-
*
582-
* @example
583-
* var obj = {
584-
* 'a': 1,
585-
* 'b': 2,
586-
* 'c': 3
587-
* };
588-
*
589-
* var obj2 = {
590-
* 'a': 1,
591-
* 'b': 2
592-
* };
593-
*
594-
* var keys = ns.commonKeys( obj, obj2 );
595-
* // returns [ 'a', 'b' ]
596-
*
597-
* @example
598-
* var obj1 = {
599-
* 'a': 1,
600-
* 'b': 2,
601-
* 'c': 3
602-
* };
603-
*
604-
* var obj2 = {
605-
* 'a': 1,
606-
* 'b': 2
607-
* };
608-
*
609-
* var obj3 = {
610-
* 'a': 1,
611-
* };
612-
*
613-
* var keys = ns.commonKeys( obj1, obj2, obj3 );
614-
* // returns [ 'a' ]
615-
*/
616-
commonKeys: typeof commonKeys;
617-
618573
/**
619574
* Returns the common own and inherited property names of two or more objects.
620575
*

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,6 @@ setReadOnly( utils, 'bifurcateIn', require( '@stdlib/utils/bifurcate-in' ) );
130130
*/
131131
setReadOnly( utils, 'bifurcateOwn', require( '@stdlib/utils/bifurcate-own' ) );
132132

133-
/**
134-
* @name commonKeys
135-
* @memberof utils
136-
* @readonly
137-
* @type {Function}
138-
* @see {@link module:@stdlib/utils/common-keys}
139-
*/
140-
setReadOnly( utils, 'commonKeys', require( '@stdlib/utils/common-keys' ) );
141-
142133
/**
143134
* @name commonKeysIn
144135
* @memberof utils

0 commit comments

Comments
 (0)