Repository URL to install this package:
|
Version:
6.0.4 ▾
|
/**
* @name spliceIn
* @since 5.0.0 beta.6
* @memberOf array
*
* @param {Array} array array to splice
* @param {number} idx index to splice at
* @param {boolean} [canEdit=false] should mutate
* @return {Array}
*
* {@link https://github.com/facebook/immutable-js/blob/master/src/Map.js#L930 immutable-js-splice-in}
* @see {@link immutable-js-splice-in}
*
* @example
*
* spliceIn(['zero', 'one'], 1)
* //=> ['zero']
*
* spliceIn(['zero', 'one'], 0)
* //=> ['one']
*
* spliceIn(['zero', 'one'], 0, true)
* //=> ['one']
*
*/
declare function spliceOut(array: any[], idx: number, canEdit?: boolean): any[];
export default spliceOut;