Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create for.js #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Create for.js #3

wants to merge 1 commit into from

Commits on Jun 21, 2015

  1. Create for.js

    Same as https://github.com/jonschlinkert/array-unique/blob/master/benchmark/code/while.js, but preserves the order of elements in result array, which is nice to have.
    
    Performance is almost as good as while.js
    
    BTW, is there any reason the implementation in https://github.com/jonschlinkert/array-unique/blob/master/index.js is not from https://github.com/jonschlinkert/array-unique/blob/master/benchmark/code/while.js ?
    
    For me on node 0.12.0 array-uniq with Set is the fastest on arrays bigger than 1000 elements. In all other cases https://github.com/jonschlinkert/array-unique/blob/master/benchmark/code/while.js is the fastest.
    vlazar committed Jun 21, 2015
    Configuration menu
    Copy the full SHA
    1a32b3b View commit details
    Browse the repository at this point in the history