@writetome51/array-starts-with-ends-with
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

arrayStartsWith(values, array): boolean

Returns true if array starts with values.

arrayEndsWith(values, array): boolean

Returns true if array ends with values.

Examples

let arr = ['a','b','e','f','g','h','i'];  
arrayStartsWith(['a','b','e'], arr); // true  

let arr = ['a','b','e','f','g','h','i'];  
arrayEndsWith(['h','i'], arr); // true

Installation

npm i @writetome51/array-starts-with-ends-with

Loading

import {arrayStartsWith, arrayEndsWith} 
	from '@writetome51/array-starts-with-ends-with';

Package Sidebar

Install

npm i @writetome51/array-starts-with-ends-with

Weekly Downloads

3

Version

2.0.0

License

MIT

Unpacked Size

3.74 kB

Total Files

6

Last publish

Collaborators

  • writetome51