common-sequence

Returns an array containing the initial elements which both input arrays have in common

Browse on unpkg