@ephox/katamari
Advanced tools
Comparing version 2.5.0 to 2.5.1
@@ -31,2 +31,3 @@ import { Option } from './Option'; | ||
export declare const has: <T, K extends keyof T>(obj: T, key: K) => boolean; | ||
export declare const isEmpty: (r: Record<any, any>) => boolean; | ||
//# sourceMappingURL=Obj.d.ts.map |
@@ -81,2 +81,10 @@ import { Option } from './Option'; | ||
}; | ||
export var isEmpty = function (r) { | ||
for (var x in r) { | ||
if (hasOwnProperty.call(r, x)) { | ||
return false; | ||
} | ||
} | ||
return true; | ||
}; | ||
//# sourceMappingURL=Obj.js.map |
{ | ||
"name": "@ephox/katamari", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "Basic data type library", | ||
@@ -35,3 +35,3 @@ "repository": { | ||
"types": "./lib/main/ts/ephox/katamari/api/Main.d.ts", | ||
"gitHead": "fdb1cfec005c228b09a618df693c0ea43d8d9f92" | ||
"gitHead": "14a2a47cb6124fa605cee20ee7b27248c3ab8d5a" | ||
} |
@@ -93,1 +93,10 @@ import { Option } from './Option'; | ||
}; | ||
export const isEmpty = (r: Record<any, any>): boolean => { | ||
for (const x in r) { | ||
if (hasOwnProperty.call(r, x)) { | ||
return false; | ||
} | ||
} | ||
return true; | ||
}; |
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
893389
565
13839