Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Shorten uncurry-this-ing of `Array.prototype.slice`.

  • Loading branch information...
commit f9013d46e9f6de84fe2ce6405d5b78081aa5b4f5 1 parent b457945
@domenic authored
Showing with 1 addition and 6 deletions.
  1. +1 −6 lib/Publisher.js
View
7 lib/Publisher.js
@@ -31,12 +31,7 @@ function normalizeOptions(options) {
return options;
}
-var slice = (function () {
- var bind = Function.prototype.bind;
- var uncurryThis = bind.bind(bind.call);
-
- return uncurryThis(Array.prototype.slice);
-}());
+var slice = Function.prototype.call.bind(Array.prototype.slice);
module.exports = function Publisher(options) {
var that = this;
Please sign in to comment.
Something went wrong with that request. Please try again.