pepka 0.14.0-beta2 → 0.14.0-beta4

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.
File without changes
package/dist/bundle.d.ts CHANGED
@@ -11,6 +11,7 @@ export type AnyArgs = any[];
11
11
  export type Curried<Args extends AnyArgs = AnyArgs, ReturnT = any> = (arg: Args[number]) => Curried<Args> | ReturnT;
12
12
  export type Reducer = <T = any>(accum: T, cur: any, index: number) => T;
13
13
  export type AnyFunc<ReturnT = any, Args extends AnyArgs = AnyArgs> = (...args: Args) => ReturnT;
14
+ export type TupleFn<ARG1 = any, ARG2 = any, Out = any> = (a: ARG1, b: ARG2) => Out;
14
15
  export type Placeholder = symbol;
15
16
  declare const __: Placeholder;
16
17
  export declare const curry: <Func extends AnyFunc<any, AnyArgs>>(fn: AnyFunc) => FT.Curry<Func>;
@@ -63,7 +64,6 @@ export declare const includes: {
63
64
  (a: unknown, b: unknown[]): boolean;
64
65
  };
65
66
  export declare const slice: FT.Curry<(from: number, to: number, o: any[] | string) => string | any[]>;
66
- export type TupleFn<ARG1 = any, ARG2 = any, Out = any> = (a: ARG1, b: ARG2) => Out;
67
67
  export declare const flip: <ARG1 = any, ARG2 = any, Out = any>(fn: FT.Curry<TupleFn<ARG1, ARG2, Out>>) => FT.Curry<TupleFn<ARG2, ARG1, Out>>;
68
68
  export declare const head: (b: string | unknown[]) => unknown;
69
69
  export declare const tail: FT.Curry<(o: string | any[]) => string | any[]>;
@@ -256,8 +256,8 @@ export declare const prop: {
256
256
  };
257
257
  export declare const propEq: FT.Curry<(key: string, value: any, o: AnyObject) => boolean>;
258
258
  export declare const propsEq: FT.Curry<(key: string, o1: any, o2: AnyObject) => boolean>;
259
- export declare const pathOr: FT.Curry<(_default: any, path: string[], o: any) => any>;
260
- export declare const path: FT.Curry<(path: string[], o: any) => any>;
259
+ export declare const pathOr: FT.Curry<(_default: any, path: (string | number)[], o: any) => any>;
260
+ export declare const path: FT.Curry<(path: (string | number)[], o: any) => any>;
261
261
  export declare const pathEq: FT.Curry<(_path: string[], value: any, o: AnyObject) => (a: any) => boolean>;
262
262
  export declare const pathsEq: FT.Curry<(_path: string[], o1: AnyObject, o2: AnyObject) => (a: any) => boolean>;
263
263
  export declare const clone: (s: any, shallow?: boolean) => any;
File without changes
package/package.json CHANGED
@@ -21,8 +21,10 @@
21
21
  "license": "MIT",
22
22
  "type": "module",
23
23
  "exports": {
24
- ".": "./dist/bundle.esm.js",
25
- "./cjs": "./dist/bundle.js"
24
+ ".": {
25
+ "module": "./dist/bundle.mjs",
26
+ "commonjs": "./dist/bundle.cjs"
27
+ }
26
28
  },
27
29
  "name": "pepka",
28
30
  "repository": {
@@ -42,7 +44,7 @@
42
44
  "prod": "npm run gentypes && npm run prod:es && npm run prod:cjs",
43
45
  "all": "npm run dev && npm run prod"
44
46
  },
45
- "version": "0.14.0-beta2",
47
+ "version": "0.14.0-beta4",
46
48
  "ava": {
47
49
  "files": [ "./test/specs/*.ts" ],
48
50
  "failFast": true,
package/rollup.config.js CHANGED
@@ -10,9 +10,8 @@ export default {
10
10
  output: {
11
11
  file: process.env.NODE_ENV=='development'
12
12
  ? 'dist/bundle.dev.js'
13
- : process.env.BUILD == 'cjs' ? 'dist/bundle.js' : 'dist/bundle.esm.js',
13
+ : process.env.BUILD == 'cjs' ? 'dist/bundle.cjs' : 'dist/bundle.mjs',
14
14
  format: process.env.BUILD == 'cjs' ? 'cjs' : 'es',
15
- // exports: 'named',
16
15
  name: 'pepka'
17
16
  },
18
17
  treeshake: { moduleSideEffects: false },
package/src/safe.ts CHANGED
@@ -213,7 +213,7 @@ export const propsEq = curry3(
213
213
  (key: string, o1: any, o2: AnyObject) => equals(o1[key], o2[key])
214
214
  )
215
215
  export const pathOr = curry3(
216
- (_default: any, path: string[], o: any) =>
216
+ (_default: any, path: (string | number)[], o: any) =>
217
217
  ifElse(length,
218
218
  () => isNil(o)
219
219
  ? _default
@@ -1,600 +0,0 @@
1
- const __ = Symbol('Placeholder');
2
- const countArgs = (s) => {
3
- let i = 0;
4
- for (const v of s)
5
- v !== __ && i++;
6
- return i;
7
- };
8
- // TODO: try to make it mutable.
9
- // { 0: __, 1: 10 }, [ 11 ]
10
- const addArgs = (args, _args) => {
11
- const len = args.length;
12
- const new_args = args.slice();
13
- const _args_len = _args.length;
14
- let _args_left = _args_len;
15
- let i = 0;
16
- for (; _args_left && i < len; i++) {
17
- if (new_args[i] === __) {
18
- new_args[i] = _args[_args_len - _args_left];
19
- _args_left--;
20
- }
21
- }
22
- for (i = len; _args_left; i++, _args_left--) {
23
- new_args[i] = _args[_args_len - _args_left];
24
- }
25
- return new_args;
26
- };
27
- const _curry = (fn, args, new_args) => {
28
- const args2add = fn.length - args.length - countArgs(new_args);
29
- if (args2add < 1) {
30
- return fn(...addArgs(args, new_args));
31
- }
32
- else {
33
- const curried = (...__args) => _curry(fn, addArgs(args, new_args), __args);
34
- curried.$args_left = args2add;
35
- return curried;
36
- }
37
- };
38
- const curry = ((fn) => ((...args) => fn.length > countArgs(args)
39
- ? _curry(fn, [], args)
40
- : fn(...args)));
41
- const endlessph = (fn) => {
42
- function _endlessph(a) {
43
- return a === __ ? fn : fn(a);
44
- }
45
- return _endlessph;
46
- };
47
- function curry2(fn) {
48
- function curried2(a, b) {
49
- const withPlaceholder1 = a === __;
50
- const aln = arguments.length;
51
- if (aln === 1 && withPlaceholder1)
52
- throw new Error('Senseless placeholder usage.');
53
- return arguments.length > 1
54
- ? withPlaceholder1
55
- ? endlessph((a) => fn(a, b))
56
- : fn(a, b)
57
- : (b) => fn(a, b);
58
- }
59
- return curried2;
60
- }
61
- function curry3(fn) {
62
- // type p0 = Parameters<Func>[0]
63
- // type p1 = Parameters<Func>[1]
64
- // type p2 = Parameters<Func>[2]
65
- // type ReturnT = ReturnType<Func>
66
- // TODO: optimize.
67
- return curry(fn);
68
- }
69
-
70
- const undef = undefined;
71
- const nul = null;
72
- const inf = Infinity;
73
- const to = (s) => typeof s;
74
- const isNull = (s) => s === nul;
75
- const isUndef = (s) => s === undef;
76
- const isNum = (s) => to(s) == 'number';
77
- const isArray = (s) => Array.isArray(s);
78
- const isFunc = (s) => to(s) === 'function';
79
- const isStr = (s) => to(s) === 'string';
80
- const isObj = (s) => !isNull(s) && to(s) === 'object';
81
-
82
- // It's faster that toUpperCase() !
83
- const caseMap = {
84
- u: 'U', b: 'B', n: 'N', s: 'S', f: 'F'
85
- };
86
- const toLower = (s) => s.toLowerCase();
87
- const toUpper = (s) => s.toUpperCase();
88
- const type = (s) => {
89
- const t = to(s);
90
- return t === 'object'
91
- ? isNull(s) ? 'Null' : s.constructor.name
92
- : caseMap[t[0]] + t.slice(1);
93
- };
94
- const typeIs = curry2((t, s) => type(s) === t);
95
-
96
- // TODO: qmap, qfilter.
97
- const qappend = curry2((s, xs) => { xs.push(s); return xs; });
98
- const qassoc = curry3((prop, v, obj) => {
99
- obj[prop] = v;
100
- return obj;
101
- });
102
- const qreduce = curry3((fn, accum, arr) => arr.reduce(fn, accum));
103
- // strategy is for arrays: 1->clean, 2->merge, 3->push.
104
- const mergeDeep$1 = curry3((strategy, o1, o2) => {
105
- for (let k in o2) {
106
- switch (type(o2[k])) {
107
- case 'Array':
108
- if (strategy > 1 && type(o1[k]) === 'Array') {
109
- switch (strategy) {
110
- case 2:
111
- const o1k = o1[k], o2k = o2[k];
112
- for (const i in o2k) {
113
- if (o1k[i]) {
114
- mergeDeep$1(strategy, o1k[i], o2k[i]);
115
- }
116
- else {
117
- o1k[i] = o2k[i];
118
- }
119
- }
120
- break;
121
- case 3: o1[k].push(...o2[k]);
122
- }
123
- }
124
- else {
125
- o1[k] = o2[k];
126
- }
127
- break;
128
- case 'Object':
129
- if (type(o1[k]) === 'Object') {
130
- mergeDeep$1(strategy, o1[k], o2[k]);
131
- break;
132
- }
133
- default:
134
- o1[k] = o2[k];
135
- break;
136
- }
137
- }
138
- return o1;
139
- });
140
- const qmergeDeep = mergeDeep$1(1);
141
- const qmergeDeepX = mergeDeep$1(2);
142
- const qmergeDeepAdd = mergeDeep$1(3);
143
- /** qmapKeys({ a: 'b' }, { a: 44 }) -> { b: 44 } */
144
- const qmapKeys = curry2((keyMap, o) => {
145
- let k, mapped, newKey, newValue;
146
- for (k in keyMap) {
147
- mapped = keyMap[k];
148
- [newKey, newValue] = isFunc(mapped)
149
- ? mapped(o)
150
- : [mapped, o[k]];
151
- o[newKey] = newValue;
152
- if (k !== newKey) {
153
- delete o[k];
154
- }
155
- }
156
- return o;
157
- });
158
- const qfilter = curry2((cond, data) => {
159
- const isArr = isArray(data);
160
- for (let k in data) {
161
- if (!cond(data[k], k)) {
162
- if (isArr) {
163
- data.splice(k, 1);
164
- }
165
- else {
166
- // TODO: handle Maps and Sets ?
167
- delete data[k];
168
- }
169
- }
170
- }
171
- return data;
172
- });
173
- /** @deprecated */
174
- const qindexOf = curry2((x, xs) => xs.indexOf(x));
175
-
176
- // TODO: possibly introduce a second argument limiting unfolding.
177
- const uncurry = (fn) => (...args) => qreduce(((fn, arg) => fn ? fn(arg) : fn), fn, args);
178
-
179
- // SomeType, totype, over, lensProp
180
- const take = (argN) => (...args) => args[argN];
181
- const equals = curry2((a, b) => {
182
- const typea = type(a);
183
- if (typea === type(b) && (typea === 'Object' || typea == 'Array')) {
184
- if (isNull(a) || isNull(b)) {
185
- return a === b;
186
- }
187
- if (a === b) {
188
- return true;
189
- }
190
- for (const v of [a, b]) {
191
- for (const k in v) {
192
- if (!((v === b) && (k in a)) &&
193
- !((v === a) && (k in b) && equals(a[k], b[k]))) {
194
- return false;
195
- }
196
- }
197
- }
198
- return true;
199
- }
200
- return a === b;
201
- });
202
- const ifElse = curry((cond, pipeYes, pipeNo, s) => cond(s) ? pipeYes(s) : pipeNo(s));
203
- const when = curry3((cond, pipe, s) => ifElse(cond, pipe, identity, s));
204
- const compose = ((...fns) => (...args) => {
205
- let first = true;
206
- let s;
207
- for (let i = length(fns) - 1; i > -1; i--) {
208
- if (first) {
209
- first = false;
210
- s = fns[i](...args);
211
- }
212
- else
213
- s = s === __ ? fns[i]() : fns[i](s);
214
- }
215
- return s;
216
- });
217
- const bind = curry2((fn, context) => fn.bind(context));
218
- const _nth = (i, data) => data[i];
219
- const nth = curry2(_nth);
220
- const includes = curry2((s, ss) => {
221
- if (isStr(ss)) {
222
- return ss.includes(s);
223
- }
224
- else {
225
- for (const a of ss) {
226
- if (equals(a, s)) {
227
- return true;
228
- }
229
- }
230
- return false;
231
- }
232
- });
233
- const slice = curry3((from, to, o) => o.slice(from, (isNum(to) ? to : inf)));
234
- const flip = (fn) => curry2((b, a) => fn(a, b));
235
- const head = nth(0);
236
- const tail = slice(1, inf); // typeshit.
237
- const add = curry2((n, m) => n + m);
238
- const subtract = curry2((n, m) => m - n);
239
- const multiply = curry2((n, m) => n * m);
240
- const divide = curry2((n, m) => n / m);
241
- const isNil = (s) => isNull(s) || isUndef(s);
242
- const length = (s) => s.length;
243
- const always = (s) => () => s;
244
- const identity = (s) => s;
245
- const trim = (s) => s.trim();
246
- const last = (s) => s[length(s) - 1];
247
- const not = (o) => !o;
248
- const complement = (fn) => (...args) => {
249
- const out = fn(...args);
250
- return (isFunc(out) && out.$args_left) ? complement(out) : not(out);
251
- };
252
- const keys = (o) => Object.keys(o);
253
- const values = (o) => Object.values(o);
254
- const toPairs = (o) => Object.entries(o);
255
- const test = curry2((re, s) => re.test(s));
256
- const tap = curry2((fn, s) => { fn(s); return s; });
257
- const append = curry2((s, xs) => [...xs, s]);
258
- const split = curry2((s, xs) => xs.split(s));
259
- const T = always(true);
260
- const F = always(false);
261
- const sizeof = (s) => {
262
- if (type(s) === 'Object') {
263
- let len = 0;
264
- for (let _k in s)
265
- len++;
266
- return len;
267
- }
268
- else
269
- return length(s);
270
- };
271
- const range = curry2((from, to) => genBy(add(from), to - from));
272
- const uniq = (xs) => qreduce((accum, x) => includes(x, accum) ? accum : qappend(x, accum), [], xs);
273
- const intersection = curry2((xs1, xs2) => xs1.filter(flip(includes)(xs2)));
274
- const genBy = curry2((generator, length) => [...Array(length)].map((_, i) => generator(i)));
275
- const once = (fn) => {
276
- let done = false, cache;
277
- return (...args) => {
278
- if (done) {
279
- return cache;
280
- }
281
- else {
282
- done = true;
283
- return cache = fn(...args);
284
- }
285
- };
286
- };
287
- const reverse = (xs) => compose((ln) => reduce((nxs, _, i) => qappend(xs[ln - i], nxs), [], xs), add(-1), length)(xs);
288
- const gt = curry2((a, b) => a > b);
289
- const lt = curry2((a, b) => a < b);
290
- const gte = curry2((a, b) => b >= a);
291
- const lte = curry2((a, b) => b <= a);
292
- const sort = curry2((sortFn, xs) => xs.sort(sortFn));
293
- const find = curry2((fn, s) => s.find(fn));
294
- const findIndex = curry2((fn, s) => s.findIndex(fn));
295
- const indexOf = curry2((x, xs) => findIndex(equals(x), xs));
296
- const explore = (caption, level = 'log') => tap((v) => console[level](caption, v));
297
- const cond = curry2((pairs, s) => {
298
- for (const [cond, fn] of pairs) {
299
- if (cond(s)) {
300
- return fn(s);
301
- }
302
- }
303
- });
304
- const assoc = curry3((prop, v, obj) => ({
305
- ...obj,
306
- [prop]: v
307
- }));
308
- const assocPath = curry3((_path, v, o) => compose((first) => assoc(first, length(_path) < 2
309
- ? v
310
- : assocPath(slice(1, inf, _path), v, isObj(o[first]) ? o[first] : {}), o), head)(_path));
311
- const all = curry2((pred, xs) => xs.every(pred));
312
- const any = curry2((pred, xs) => xs.some(pred));
313
- const allPass = curry2((preds, x) => preds.every((pred) => pred(x)));
314
- const anyPass = curry2((preds, x) => preds.some((pred) => pred(x)));
315
- const prop = curry2((key, o) => o[key]);
316
- const propEq = curry3((key, value, o) => equals(o[key], value));
317
- const propsEq = curry3((key, o1, o2) => equals(o1[key], o2[key]));
318
- const pathOr = curry3((_default, path, o) => ifElse(length, () => isNil(o)
319
- ? _default
320
- : compose(ifElse(isNil, always(_default), (o) => pathOr(_default, slice(1, inf, path), o)), flip(prop)(o), head)(path), always(o), path));
321
- const path = pathOr(undef);
322
- const pathEq = curry3((_path, value, o) => equals(path(_path, o), value));
323
- const pathsEq = curry3((_path, o1, o2) => equals(path(_path, o1), path(_path, o2)));
324
- const typed_arr_re = /^(.*?)(8|16|32|64)(Clamped)?Array$/;
325
- const clone = (s, shallow = false) => {
326
- const t = type(s);
327
- switch (t) {
328
- case 'Null': return s;
329
- case 'Array': return shallow ? [...s] : map(compose(clone, take(0)), s);
330
- case 'Object':
331
- if (shallow)
332
- return { ...s };
333
- const out = {};
334
- for (let k in s) {
335
- out[k] = clone(s[k]);
336
- }
337
- return out;
338
- case 'String':
339
- case 'Number':
340
- case 'Boolean':
341
- case 'Symbol':
342
- return s;
343
- default:
344
- return typed_arr_re.test(t) ? s.constructor.from(s) : s;
345
- }
346
- };
347
- const cloneShallow = (s) => clone(s, true);
348
- const reduce = curry3((fn, accum, arr) => qreduce(fn, clone(accum), arr));
349
- const pickBy = curry2((cond, o) => filter(cond, o));
350
- const pick = curry2((props, o) => {
351
- const out = {};
352
- for (const p of props) {
353
- if (p in o) {
354
- out[p] = o[p];
355
- }
356
- }
357
- return out;
358
- });
359
- const omit = curry2((props, o) => filter((_, k) => !includes(k, props), o));
360
- const fromPairs = (pairs) => reduce((o, pair) => assoc(...pair, o), {}, pairs);
361
- const concat = curry2(((a, b) => a.concat(b)));
362
- const join = curry2((delimeter, arr) => arr.join(delimeter));
363
- const map = curry2((pipe, arr) => arr.map(pipe));
364
- const forEach = curry2((pipe, arr) => arr.forEach(pipe));
365
- const both = curry3((cond1, cond2, s) => cond2(s) && cond1(s));
366
- const isEmpty = (s) => {
367
- switch (type(s)) {
368
- case 'String':
369
- case 'Array': return length(s) == 0;
370
- case 'Object':
371
- for (const _k in s)
372
- return false;
373
- return true;
374
- default: return null;
375
- }
376
- };
377
- const empty = (s) => {
378
- switch (type(s)) {
379
- case 'String': return '';
380
- case 'Object': return {};
381
- case 'Array': return [];
382
- default: return undef;
383
- }
384
- };
385
- const replace = curry3((a, b, where
386
- // @ts-ignore-next Some bug with overload.
387
- ) => where.replace(a, b));
388
- const filter = curry2((cond, data) => isArray(data)
389
- ? data.filter(cond)
390
- : compose(fromPairs, filter(([k, v]) => cond(v, k)), toPairs)(data));
391
- const memoize = (fn) => {
392
- let cache;
393
- let cached = false;
394
- return () => cached ? cache : (cached = true, cache = fn());
395
- };
396
- const mergeShallow = curry2((o1, o2) => Object.assign({}, o1, o2));
397
- const mergeDeep = curry2((a, b) => qmergeDeep(clone(a), clone(b)));
398
- const mergeDeepX = curry2((a, b) => qmergeDeepX(clone(a), clone(b)));
399
- const mergeDeepAdd = curry2((a, b) => qmergeDeepAdd(clone(a), clone(b)));
400
- const overProp = curry3((prop, pipe, data) => assoc(prop, pipe(data[prop]), data));
401
- /** mapKeys({ a: 'b' }, { a: 44 }) -> { b: 44 } */
402
- const mapKeys = curry2((keyMap, o) => qmapKeys(keyMap, Object.assign({}, o)));
403
- // ASYNCS
404
- /** One promise waits for another. */
405
- const forEachSerial = (() => {
406
- const pipe = async (fn, items, i) => {
407
- if (i < items.length) {
408
- await fn(items[i]);
409
- await pipe(fn, items, ++i);
410
- }
411
- };
412
- return curry2((fn, items) => pipe(fn, items, 0));
413
- })();
414
- /** Promise.all wrapper for functional pipelining. */
415
- const waitAll = (promises) => Promise.all(promises);
416
- const waitTap = curry2(async (fn, s) => { await fn(s); return s; });
417
- /** Waits for all promises mapped by the fn. */
418
- const forEachAsync = curry2((fn, items) => Promise.all(items.map(fn)));
419
- /** The same as compose, but waits for promises in chains and returns a Promise. */
420
- const composeAsync = (() => {
421
- const pipe = async (fns, data, i) => ~i ? await pipe(fns, await fns[i](data), --i) : data;
422
- return (...fns) => (data) => pipe(fns, data, fns.length - 1);
423
- })(); // as FT.Compose<'async'>
424
- // ALIASES
425
- const mirror = identity;
426
- const reflect = identity;
427
- const echo = identity;
428
-
429
- const ecran = '\\';
430
- // TODO: make it splicy, not accumulatie by symbols.
431
- // Supports ecrans: '\{"json": {yes} \}'
432
- // get_tmpl(one{meme}two)({meme: 42}) -> one42two
433
- const getTmpl = (tmpl) => {
434
- const parts = [];
435
- const keymap = [];
436
- const len = tmpl.length;
437
- let i = 0, s, ln, start = 0, open = false, hasEcran = head(tmpl), hasEcranNext = false, nextChar;
438
- for (i = 0; i < len; i++) {
439
- s = tmpl[i];
440
- switch (s) {
441
- case '{':
442
- if (!hasEcran) {
443
- open = true;
444
- start = i;
445
- break;
446
- }
447
- case '}':
448
- if (!hasEcran) {
449
- open = false;
450
- parts.push('');
451
- keymap.push(tmpl.slice(start + 1, i));
452
- break;
453
- }
454
- default:
455
- nextChar = tmpl[i + 1];
456
- hasEcranNext = s === ecran;
457
- if (!open && (!hasEcranNext || nextChar !== '{' && nextChar !== '}')) {
458
- ln = parts.length - 1;
459
- if (ln < 0) {
460
- parts.push('');
461
- ln++;
462
- }
463
- parts[ln] += s;
464
- }
465
- hasEcran = hasEcranNext;
466
- break;
467
- }
468
- }
469
- return (data) => {
470
- const out = [];
471
- const ln = parts.length - 1;
472
- for (const j in parts) {
473
- i = +j;
474
- out.push(parts[i]);
475
- if (i !== ln)
476
- out.push(path(keymap[i].split('.'), data));
477
- }
478
- return out.join('');
479
- };
480
- };
481
-
482
- var pepka = /*#__PURE__*/Object.freeze({
483
- __proto__: null,
484
- __: __,
485
- curry: curry,
486
- curry2: curry2,
487
- curry3: curry3,
488
- uncurry: uncurry,
489
- toLower: toLower,
490
- toUpper: toUpper,
491
- type: type,
492
- typeIs: typeIs,
493
- take: take,
494
- equals: equals,
495
- ifElse: ifElse,
496
- when: when,
497
- compose: compose,
498
- bind: bind,
499
- nth: nth,
500
- includes: includes,
501
- slice: slice,
502
- flip: flip,
503
- head: head,
504
- tail: tail,
505
- add: add,
506
- subtract: subtract,
507
- multiply: multiply,
508
- divide: divide,
509
- isNil: isNil,
510
- length: length,
511
- always: always,
512
- identity: identity,
513
- trim: trim,
514
- last: last,
515
- not: not,
516
- complement: complement,
517
- keys: keys,
518
- values: values,
519
- toPairs: toPairs,
520
- test: test,
521
- tap: tap,
522
- append: append,
523
- split: split,
524
- T: T,
525
- F: F,
526
- sizeof: sizeof,
527
- range: range,
528
- uniq: uniq,
529
- intersection: intersection,
530
- genBy: genBy,
531
- once: once,
532
- reverse: reverse,
533
- gt: gt,
534
- lt: lt,
535
- gte: gte,
536
- lte: lte,
537
- sort: sort,
538
- find: find,
539
- findIndex: findIndex,
540
- indexOf: indexOf,
541
- explore: explore,
542
- cond: cond,
543
- assoc: assoc,
544
- assocPath: assocPath,
545
- all: all,
546
- any: any,
547
- allPass: allPass,
548
- anyPass: anyPass,
549
- prop: prop,
550
- propEq: propEq,
551
- propsEq: propsEq,
552
- pathOr: pathOr,
553
- path: path,
554
- pathEq: pathEq,
555
- pathsEq: pathsEq,
556
- clone: clone,
557
- cloneShallow: cloneShallow,
558
- reduce: reduce,
559
- pickBy: pickBy,
560
- pick: pick,
561
- omit: omit,
562
- fromPairs: fromPairs,
563
- concat: concat,
564
- join: join,
565
- map: map,
566
- forEach: forEach,
567
- both: both,
568
- isEmpty: isEmpty,
569
- empty: empty,
570
- replace: replace,
571
- filter: filter,
572
- memoize: memoize,
573
- mergeShallow: mergeShallow,
574
- mergeDeep: mergeDeep,
575
- mergeDeepX: mergeDeepX,
576
- mergeDeepAdd: mergeDeepAdd,
577
- overProp: overProp,
578
- mapKeys: mapKeys,
579
- forEachSerial: forEachSerial,
580
- waitAll: waitAll,
581
- waitTap: waitTap,
582
- forEachAsync: forEachAsync,
583
- composeAsync: composeAsync,
584
- mirror: mirror,
585
- reflect: reflect,
586
- echo: echo,
587
- qappend: qappend,
588
- qassoc: qassoc,
589
- qreduce: qreduce,
590
- qmergeDeep: qmergeDeep,
591
- qmergeDeepX: qmergeDeepX,
592
- qmergeDeepAdd: qmergeDeepAdd,
593
- qmapKeys: qmapKeys,
594
- qfilter: qfilter,
595
- qindexOf: qindexOf,
596
- getTmpl: getTmpl
597
- });
598
-
599
- window.pepka = pepka;
600
- Object.assign(window, pepka);