Comparing version 1.0.0-alpha-14 to 1.0.0-alpha-15
@@ -67,5 +67,5 @@ // Generated by CoffeeScript 1.9.1 | ||
}); | ||
includes = function(x, ax) { | ||
includes = curry(function(x, ax) { | ||
return indexOf.call(ax, x) >= 0; | ||
}; | ||
}); | ||
context.test("includes", function() { | ||
@@ -204,2 +204,3 @@ return (function(data) { | ||
slice: slice, | ||
empty: empty, | ||
first: first, | ||
@@ -206,0 +207,0 @@ second: second, |
@@ -8,3 +8,3 @@ // Generated by CoffeeScript 1.9.1 | ||
describe("String functions", function(context) { | ||
var blank, camel_case, capitalize, dashed, empty, html_escape, plain_text, title_case, to_string, underscored, w; | ||
var blank, camel_case, capitalize, dashed, html_escape, plain_text, title_case, to_string, underscored, w; | ||
to_string = function(x) { | ||
@@ -85,7 +85,7 @@ return x.toString(); | ||
}); | ||
empty = blank = function(s) { | ||
return s === ""; | ||
blank = function(s) { | ||
return s.length === 0; | ||
}; | ||
context.test("empty", function() { | ||
assert(empty("")); | ||
context.test("blank", function() { | ||
assert(blank("")); | ||
return assert(!blank("x")); | ||
@@ -103,4 +103,3 @@ }); | ||
w: w, | ||
blank: blank, | ||
empty: empty | ||
blank: blank | ||
}; | ||
@@ -107,0 +106,0 @@ }); |
@@ -10,3 +10,3 @@ // Generated by CoffeeScript 1.9.1 | ||
describe("Type functions", function(context) { | ||
var instance_of, is_function, is_string, is_type, is_value, type; | ||
var instance_of, is_array, is_function, is_object, is_string, is_type, is_value, type; | ||
type = function(x) { | ||
@@ -24,8 +24,6 @@ return Object.prototype.toString.call(x).slice(8, -1).toLowerCase(); | ||
context.test("instance_of"); | ||
is_string = function(x) { | ||
return x.trim != null; | ||
}; | ||
is_function = function(x) { | ||
return x.call != null; | ||
}; | ||
is_string = is_type("string"); | ||
is_function = is_type("function"); | ||
is_object = is_type("object"); | ||
is_array = is_type("array"); | ||
is_value = function(x) { | ||
@@ -41,2 +39,4 @@ return x != null; | ||
is_function: is_function, | ||
is_object: is_object, | ||
is_array: is_array, | ||
is_value: is_value | ||
@@ -43,0 +43,0 @@ }; |
{ | ||
"name": "fairmont", | ||
"version": "1.0.0-alpha-14", | ||
"version": "1.0.0-alpha-15", | ||
"description": "A collection of useful functions and utilities.", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
99149