@furystack/utils
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -32,3 +32,3 @@ "use strict"; | ||
this.observers = new Set(); | ||
if (initialValue) { | ||
if (initialValue !== undefined) { | ||
this.currentValue = initialValue; | ||
@@ -35,0 +35,0 @@ } |
@@ -12,3 +12,3 @@ declare global { | ||
} | ||
export declare const compareBy: <T, K extends keyof T>(entity1: T, entity2: T, field: K, direction: 'asc' | 'desc') => 1 | -1 | 0; | ||
export declare const compareBy: <T, K extends keyof T>(entity1: T, entity2: T, field: K, direction: 'asc' | 'desc') => 0 | 1 | -1; | ||
//# sourceMappingURL=sort-by.d.ts.map |
{ | ||
"name": "@furystack/utils", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "General utilities", | ||
@@ -39,3 +39,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "714fb0cdad461a54f62d77b58544e82dcc0ffd28" | ||
"gitHead": "d84807f44d6224349d3355818b5c38d19ea1a44e" | ||
} |
@@ -102,3 +102,3 @@ import { Disposable } from './disposable' | ||
constructor(initialValue?: T) { | ||
if (initialValue) { | ||
if (initialValue !== undefined) { | ||
this.currentValue = initialValue | ||
@@ -105,0 +105,0 @@ } |
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
202433