Created
May 8, 2015 09:13
-
-
Save felixzapata/4b52de061977fc9040fe to your computer and use it in GitHub Desktop.
'without' function for Ramda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
R.without = function (){ | |
var args = Array.prototype.slice.call(arguments); | |
var originalArray = args.pop(); | |
return R.reject(function (el){ return args.indexOf(el) != -1}, originalArray); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment