array-starts-with

    1.1.6 • Public • Published

    array-starts-with

    MIT License Build Status

    NPM status

    The same as String.prototype.startsWith but comparing array elements instead of string characters

    installation

    with npm:

    npm i --save array-starts-with
    

    or with yarn:

    yarn add array-starts-with
    

    usage

    import arrayStartsWith from 'array-starts-with'
    // or:
    // const arrayStartsWith = require('array-starts-with').default;
    
    const base = ['foo', 'bar', 'baz'];
    const start = ['foo', 'bar'];
    
    const result = arrayStartsWith(base, start);
    
    expect(result).to.equal(true);

    Install

    npm i array-starts-with

    DownloadsWeekly Downloads

    39

    Version

    1.1.6

    License

    MIT

    Unpacked Size

    3.13 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar