collect.js
Advanced tools
Comparing version 3.0.32 to 3.0.33
@@ -86,4 +86,7 @@ 'use strict'; | ||
module.exports = function collect(collection) { | ||
module.exports = function (collection) { | ||
return new Collection(collection); | ||
}; | ||
module.exports.default = function (collection) { | ||
return new Collection(collection); | ||
}; |
type Operator = "===" | "==" | "!==" | "!=" | "<>" | ">" | "<" | ">=" | "<=" | ||
interface CollectionInstance<Item> { | ||
items: Item[] | Object | ||
/** | ||
@@ -865,2 +863,4 @@ * The unique method returns all of the unique items in the collection. | ||
macro(name: string, fn: Function): void; | ||
[macroFn: string]: Function; | ||
} | ||
@@ -867,0 +867,0 @@ |
{ | ||
"name": "collect.js", | ||
"version": "3.0.32", | ||
"version": "3.0.33", | ||
"description": "Convenient and dependency free wrapper for working with arrays and objects.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -84,4 +84,3 @@ function Collection(collection) { | ||
module.exports = function collect(collection) { | ||
return new Collection(collection); | ||
}; | ||
module.exports = collection => new Collection(collection); | ||
module.exports.default = collection => new Collection(collection); |
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
2369
345948