Files
ss-tools/frontend/.svelte-kit/output/server/chunks/equality.js

52 lines
1.2 KiB
JavaScript

var is_array = Array.isArray;
var index_of = Array.prototype.indexOf;
var array_from = Array.from;
var define_property = Object.defineProperty;
var get_descriptor = Object.getOwnPropertyDescriptor;
var object_prototype = Object.prototype;
var array_prototype = Array.prototype;
var get_prototype_of = Object.getPrototypeOf;
var is_extensible = Object.isExtensible;
const noop = () => {
};
function run_all(arr) {
for (var i = 0; i < arr.length; i++) {
arr[i]();
}
}
function deferred() {
var resolve;
var reject;
var promise = new Promise((res, rej) => {
resolve = res;
reject = rej;
});
return { promise, resolve, reject };
}
function equals(value) {
return value === this.v;
}
function safe_not_equal(a, b) {
return a != a ? b == b : a !== b || a !== null && typeof a === "object" || typeof a === "function";
}
function safe_equals(value) {
return !safe_not_equal(value, this.v);
}
export {
array_from as a,
deferred as b,
array_prototype as c,
define_property as d,
equals as e,
get_prototype_of as f,
get_descriptor as g,
is_extensible as h,
is_array as i,
index_of as j,
safe_not_equal as k,
noop as n,
object_prototype as o,
run_all as r,
safe_equals as s
};