mirror of
https://github.com/SoPat712/A2ZSoftware.git
synced 2025-08-21 10:18:46 -04:00
42 lines
1.0 KiB
JavaScript
42 lines
1.0 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 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_prototype as a,
|
|
get_prototype_of as b,
|
|
is_extensible as c,
|
|
index_of as d,
|
|
equals as e,
|
|
define_property as f,
|
|
get_descriptor as g,
|
|
array_from as h,
|
|
is_array as i,
|
|
safe_not_equal as j,
|
|
noop as n,
|
|
object_prototype as o,
|
|
run_all as r,
|
|
safe_equals as s
|
|
};
|