_.flatConcat
Concatenates an item to an array of a given position
_.flatConcat(position, item, array)
Parameters:
position [number]:
the position where the item will be added
item [any] :
the item to be added
array [array]:
the array with the elements
Example:
_.flatConcat([1,2,4,5], 2, 3)
// => [1,2,3,4,5]
Last updated