Using the lodash ary() function

The ary() function in lodash constrains the number of arguments a given function will accept.

HTML

<script src="https://rawgit.com/lodash/lodash/3.4.0/lodash.min.js"></script>

JavaScript

var collection = [
    [ 1, 2, 3 ],
    [ 1, 2, 3 ],
    [ 1, 2, 3 ]
];

console.clear();

console.log(_.ary(['1', '2'], 1)
    );