1 var ary = require('./ary');
4 * Creates a function that accepts up to one argument, ignoring any
5 * additional arguments.
11 * @param {Function} func The function to cap arguments for.
12 * @returns {Function} Returns the new capped function.
15 * _.map(['6', '8', '10'], _.unary(parseInt));
18 function unary(func) {
22 module.exports = unary;