mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 13:34:11 +01:00
Normalise the use of "func" vs "fn" for function references.
"func" had the numbers.
This commit is contained in:
@@ -372,18 +372,18 @@ const util = { //{{{
|
||||
}),
|
||||
|
||||
/**
|
||||
* Returns the array that results from applying <b>fn</b> to each property
|
||||
* of <b>obj</b>.
|
||||
* Returns the array that results from applying <b>func</b> to each
|
||||
* property of <b>obj</b>.
|
||||
*
|
||||
* @param {Object} obj
|
||||
* @param {function} fn
|
||||
* @param {function} func
|
||||
* @returns {Array}
|
||||
*/
|
||||
map: function map(obj, fn)
|
||||
map: function map(obj, func)
|
||||
{
|
||||
let ary = [];
|
||||
for (let i in Iterator(obj))
|
||||
ary.push(fn(i));
|
||||
ary.push(func(i));
|
||||
return ary;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user