Skip to content

Commit 3fd5d2c

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

File tree

2 files changed

+0
-39
lines changed

2 files changed

+0
-39
lines changed

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

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ import map5d = require( '@stdlib/utils/map5d' );
143143
import maskArguments = require( '@stdlib/utils/mask-arguments' );
144144
import memoize = require( '@stdlib/utils/memoize' );
145145
import merge = require( '@stdlib/utils/merge' );
146-
import moveProperty = require( '@stdlib/utils/move-property' );
147146
import naryFunction = require( '@stdlib/utils/nary-function' );
148147
import nativeClass = require( '@stdlib/utils/native-class' );
149148
import nextTick = require( '@stdlib/utils/next-tick' );
@@ -3902,35 +3901,6 @@ interface Namespace {
39023901
*/
39033902
merge: typeof merge;
39043903

3905-
/**
3906-
* Moves a property from one object to another object.
3907-
*
3908-
* ## Notes
3909-
*
3910-
* - The property is deleted from the source object and the property's descriptor is preserved during transfer.
3911-
* - If a source property is not configurable, the function throws an error, as the property cannot be deleted from the source object.
3912-
*
3913-
* @param source - source object
3914-
* @param prop - property to move
3915-
* @param target - target object
3916-
* @returns boolean indicating whether operation was successful
3917-
*
3918-
* @example
3919-
* var obj1 = { 'a': 'b' };
3920-
* var obj2 = {};
3921-
*
3922-
* var bool = ns.moveProperty( obj1, 'a', obj2 );
3923-
* // returns true
3924-
*
3925-
* @example
3926-
* var obj1 = { 'a': 'b' };
3927-
* var obj2 = {};
3928-
*
3929-
* var bool = ns.moveProperty( obj1, 'c', obj2 );
3930-
* // returns false
3931-
*/
3932-
moveProperty: typeof moveProperty;
3933-
39343904
/**
39353905
* Returns a function that applies a specified number of arguments to a provided function.
39363906
*

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,15 +1147,6 @@ setReadOnly( utils, 'memoize', require( '@stdlib/utils/memoize' ) );
11471147
*/
11481148
setReadOnly( utils, 'merge', require( '@stdlib/utils/merge' ) );
11491149

1150-
/**
1151-
* @name moveProperty
1152-
* @memberof utils
1153-
* @readonly
1154-
* @type {Function}
1155-
* @see {@link module:@stdlib/utils/move-property}
1156-
*/
1157-
setReadOnly( utils, 'moveProperty', require( '@stdlib/utils/move-property' ) );
1158-
11591150
/**
11601151
* @name naryFunction
11611152
* @memberof utils

0 commit comments

Comments
 (0)