generated from ranajahanzaib/npm-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
31 lines (28 loc) · 755 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* Copyright (c) 2020-present, Rana Jahanzaib
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { isEmpty, isNotEmpty } from "./lib/checks/isEmpty.js";
import { isNull, isNotNull } from "./lib/checks/isNull.js";
import { is } from "./lib/checks/is.js";
import { random } from "./lib/number/index.js";
import either from "./lib/randoms/either.js";
export const overcode = {
random,
check: {
ifEmpty: isEmpty,
ifNotEmpty: isNotEmpty,
ifNull: isNull,
ifNotNull: isNotNull,
},
isEmpty,
isNotEmpty,
isNull,
isNotNull,
is,
either,
};
export { random, is, isEmpty, isNotEmpty, isNotNull, isNull, either };
export default overcode;