You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Replaces specified elements of an array with provided values.
3148
+
*
3149
+
* @param x - input array
3150
+
* @param indices - list of element indices
3151
+
* @param values - values to set
3152
+
* @param mode - index mode
3153
+
* @returns input array
3154
+
*
3155
+
* @example
3156
+
* var x = [ 1, 2, 3, 4 ];
3157
+
*
3158
+
* var indices = [ 1, 2 ];
3159
+
* var values = [ 20, 30 ];
3160
+
*
3161
+
* var out = ns.put( x, indices, values, 'throw' );
3162
+
* // returns [ 1, 20, 30, 4 ]
3163
+
*
3164
+
* var bool = ( out === x );
3165
+
* // returns true
3166
+
*
3167
+
* @example
3168
+
* var x = [ 1, 2, 3, 4 ];
3169
+
*
3170
+
* var out = ns.put( x, [ 1, 2 ], [ 30 ], 'throw' );
3171
+
* // returns [ 1, 30, 30, 4 ]
3172
+
*
3173
+
* var bool = ( out === x );
3174
+
* // returns true
3175
+
*/
3176
+
put: typeofput;
3177
+
3101
3178
/**
3102
3179
* Applies a quaternary callback to elements in four two-dimensional nested input arrays and assigns results to elements in a two-dimensional nested output array.
0 commit comments