keysLast

Type:Function
Status:stable
Platform:jsnode
@blackbyte.sugar.shared.array

Make sure the passed array ends with the passed keys

Params

  1. array*-Array

    The array to process

  2. keys*-Array

    The keys to end the array with

Return

  1. -Array

    The processed array

Example

import { keysLast } from '@blackbyte/sugar/array'
keysLast(['a','b','d','g','c'], ['d','g'])
// ['a','b','c','d','g']