@supercharge/collections
Advanced tools
Comparing version 4.3.1 to 5.0.0
@@ -14,5 +14,5 @@ 'use strict'; | ||
const collect = (collection) => { | ||
return new pending_async_collection_1.PendingAsyncCollection([].concat(collection !== null && collection !== void 0 ? collection : [])); | ||
return new pending_async_collection_1.PendingAsyncCollection([].concat(collection ?? [])); | ||
}; | ||
exports.default = collect; | ||
exports.Collect = collect; |
@@ -18,3 +18,3 @@ 'use strict'; | ||
this.items = items; | ||
this.callChain = new queue_datastructure_1.default(...callChain !== null && callChain !== void 0 ? callChain : []); | ||
this.callChain = new queue_datastructure_1.default(...callChain ?? []); | ||
} | ||
@@ -21,0 +21,0 @@ /** |
{ | ||
"name": "@supercharge/collections", | ||
"description": "async/await-ready array methods for JavaScript and Node.js", | ||
"version": "4.3.1", | ||
"version": "5.0.0", | ||
"author": "Marcus Pöhls <marcus@superchargejs.com>", | ||
@@ -14,3 +14,3 @@ "bugs": { | ||
"@supercharge/eslint-config-typescript": "~2.3.1", | ||
"@supercharge/tsconfig": "~1.0.0", | ||
"@supercharge/tsconfig": "~4.0.0", | ||
"c8": "~7.12.0", | ||
@@ -17,0 +17,0 @@ "eslint": "~8.26.0", |
103825