@yookue/ts-lang-utils
Version:
Common lang utilities for typescript
105 lines (103 loc) • 3.64 kB
JavaScript
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/util/ArrayUtils/index.ts
var ArrayUtils_exports = {};
__export(ArrayUtils_exports, {
add: () => import_add.add,
addAll: () => import_addAll.addAll,
count: () => import_count.count,
equals: () => import_equals.equals,
equalsAny: () => import_equalsAny.equalsAny,
firstNotEmpty: () => import_firstNotEmpty.firstNotEmpty,
firstNotNil: () => import_firstNotNil.firstNotNil,
get: () => import_get.get,
getFirst: () => import_getFirst.getFirst,
getLast: () => import_getLast.getLast,
getLength: () => import_getLength.getLength,
getTypeof: () => import_getTypeof.getTypeof,
includes: () => import_includes.includes,
includesAll: () => import_includesAll.includesAll,
includesAny: () => import_includesAny.includesAny,
insert: () => import_insert.insert,
isEmpty: () => import_isEmpty.isEmpty,
isNotEmpty: () => import_isNotEmpty.isNotEmpty,
isTypeof: () => import_isTypeof.isTypeof,
maxLength: () => import_maxLength.maxLength,
minLength: () => import_minLength.minLength,
readonly: () => import_readonly.readonly,
remove: () => import_remove.remove,
removeAll: () => import_removeAll.removeAll,
reverse: () => import_reverse.reverse,
singleton: () => import_singleton.singleton
});
module.exports = __toCommonJS(ArrayUtils_exports);
var import_add = require("./add");
var import_addAll = require("./addAll");
var import_count = require("./count");
var import_equals = require("./equals");
var import_equalsAny = require("./equalsAny");
var import_firstNotEmpty = require("./firstNotEmpty");
var import_firstNotNil = require("./firstNotNil");
var import_get = require("./get");
var import_getFirst = require("./getFirst");
var import_getLast = require("./getLast");
var import_getLength = require("./getLength");
var import_getTypeof = require("./getTypeof");
var import_includes = require("./includes");
var import_includesAll = require("./includesAll");
var import_includesAny = require("./includesAny");
var import_insert = require("./insert");
var import_isEmpty = require("./isEmpty");
var import_isNotEmpty = require("./isNotEmpty");
var import_isTypeof = require("./isTypeof");
var import_maxLength = require("./maxLength");
var import_minLength = require("./minLength");
var import_readonly = require("./readonly");
var import_remove = require("./remove");
var import_removeAll = require("./removeAll");
var import_reverse = require("./reverse");
var import_singleton = require("./singleton");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
add,
addAll,
count,
equals,
equalsAny,
firstNotEmpty,
firstNotNil,
get,
getFirst,
getLast,
getLength,
getTypeof,
includes,
includesAll,
includesAny,
insert,
isEmpty,
isNotEmpty,
isTypeof,
maxLength,
minLength,
readonly,
remove,
removeAll,
reverse,
singleton
});