@opfr/utils-lang 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/array.d.ts +2 -0
- package/dist/emojis.d.ts +15 -0
- package/dist/utils-lang.js +193 -173
- package/dist/utils-lang.umd.cjs +5 -5
- package/package.json +1 -1
package/dist/array.d.ts
CHANGED
|
@@ -6,3 +6,5 @@ export declare const exclude: <T>(array: T[], exclude: T[], key?: (i: T) => T |
|
|
|
6
6
|
export declare const unique: <T extends object, K extends string | number>(array: T[], key: (i: T) => K) => K[];
|
|
7
7
|
export declare const shuffle: <T>(array: T[]) => T[];
|
|
8
8
|
export declare const filterNullAndUndefined: <T>(array: (T | null | undefined)[]) => T[];
|
|
9
|
+
export declare const includeIf: <T>(array: T[], element: T, include: boolean) => T[];
|
|
10
|
+
export declare const includeArrayIf: <T>(array: T[], elements: T[], include: boolean) => T[];
|
package/dist/emojis.d.ts
CHANGED
|
@@ -110,6 +110,7 @@ export declare const emojis: {
|
|
|
110
110
|
item_lootbox1: string;
|
|
111
111
|
item_lootbox2: string;
|
|
112
112
|
item_lootbox3: string;
|
|
113
|
+
item_lootbox4: string;
|
|
113
114
|
item_bottle_xp: string;
|
|
114
115
|
item_boost_week: string;
|
|
115
116
|
item_boost_day: string;
|
|
@@ -144,4 +145,18 @@ export declare const emojis: {
|
|
|
144
145
|
item_ship_fairy_wing: string;
|
|
145
146
|
item_ship_phoenix_feather: string;
|
|
146
147
|
item_ship_mithril: string;
|
|
148
|
+
item_craft_cereal: string;
|
|
149
|
+
item_craft_cotton: string;
|
|
150
|
+
item_craft_empty_box: string;
|
|
151
|
+
item_craft_enchanted_emerald: string;
|
|
152
|
+
item_craft_enchanted_ruby: string;
|
|
153
|
+
item_craft_enchanted_sapphire: string;
|
|
154
|
+
item_craft_enchanted_stone: string;
|
|
155
|
+
item_craft_flour: string;
|
|
156
|
+
item_craft_hemp: string;
|
|
157
|
+
item_craft_scrap: string;
|
|
158
|
+
item_craft_strange_gem: string;
|
|
159
|
+
item_craft_strange_stone: string;
|
|
160
|
+
item_craft_tools: string;
|
|
161
|
+
item_craft_wood: string;
|
|
147
162
|
};
|