Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (12 sloc) 408 Bytes
import arrayInsert from "../arrayInsert";
import ArrayPushFunction from "./ArrayPushFunction";
/**
* Insert given item at the end of given array.
*
* @param target - Target array.
* @param item - Item to be inserted.
* @returns New array with inserted values in it.
*/
export const arrayPush: ArrayPushFunction = (target, item) =>
arrayInsert(target, target.length, item);
export default arrayPush;
You can’t perform that action at this time.