Sha256: 56ff8fa0c3378062c30650abb963551427a60573abaa8b684b2486dd5bd3a38c

Contents?: true

Size: 499 Bytes

Versions: 46

Compression:

Stored size: 499 Bytes

Contents

"use strict";

var toArray = require("../../../array/to-array")

  , f = function () {
 return toArray(arguments);
};

module.exports = function (t, a) {
	var x, y = {}, z;
	a.deep(t.call(f, 0, 1, 2)(3), [], "0 arguments");
	x = t.call(f, 5, {});
	a(x.length, 5, "Length #1");
	z = x(1, 2);
	a(z.length, 3, "Length #2");
	z = z(3, 4);
	a(z.length, 1, "Length #1");
	a.deep(z(5, 6), [1, 2, 3, 4, 5], "Many arguments");
	a.deep(x(8, 3)(y, 45)("raz", 6), [8, 3, y, 45, "raz"], "Many arguments #2");
};

Version data entries

46 entries across 46 versions & 3 rubygems

Version Path
govuk_publishing_components-18.0.0 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.21.0 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.20.0 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.19.1 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.19.0 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.18.0 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.17.0 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.16.0 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.15.0 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.14.0 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.13.0 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.12.2 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.12.1 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.12.0 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.11.0 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.10.0 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.9.0 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.8.0 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.7.0 node_modules/es5-ext/test/function/#/curry.js
govuk_publishing_components-17.6.1 node_modules/es5-ext/test/function/#/curry.js