From 2f16d53b702cafeb5211dfe28693db2ebf2614d4 Mon Sep 17 00:00:00 2001 From: Damian Krzeminski Date: Sat, 19 Jan 2013 11:02:36 -0800 Subject: [PATCH] Add aliases (forEach === each, filter === select) --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index b3c888b..b982050 100644 --- a/index.js +++ b/index.js @@ -94,6 +94,7 @@ Enumerable.prototype.__iterate__ = function(){ * @api public */ +proto.forEach = proto.each = function(fn){ var vals = this.__iterate__(); var len = vals.length(); @@ -148,6 +149,7 @@ proto.map = function(fn){ * @api public */ +proto.filter = proto.select = function(fn){ fn = toFunction(fn); var val;