1.9
This commit is contained in:
parent
fc7c94bd69
commit
2cc2f003df
71 changed files with 3359 additions and 1027 deletions
|
|
@ -2,15 +2,11 @@
|
|||
|
||||
(function (global) {
|
||||
const registry = new Map();
|
||||
|
||||
function isObject(value) {
|
||||
return Boolean(value && typeof value === "object");
|
||||
}
|
||||
|
||||
function finiteOr(value, fallback) {
|
||||
const isObject = global.TarinaiCoreHelpers?.isPlainObject || (value => Boolean(value && typeof value === "object"));
|
||||
const finiteOr = global.TarinaiCoreHelpers?.finiteOr || ((value, fallback) => {
|
||||
const n = Number(value);
|
||||
return Number.isFinite(n) ? n : fallback;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function hasOwnFn(obj, key) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue