Skip to content

why don`t judge the length of the second parameters #6

Open
@ddddderek

Description

@ddddderek

When the length of the second parameters is greater than the length of the array,The undefined will be included in the result.

example:

 var last = require('array-last');

 var a = last(['a', 'b', 'c', 'd', 'e', 'f'],7);

result

[ undefined, 'a', 'b', 'c', 'd', 'e', 'f' ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions