-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcoretools.default.js
More file actions
145 lines (128 loc) · 4.97 KB
/
coretools.default.js
File metadata and controls
145 lines (128 loc) · 4.97 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
import { VERSION } from './coretools.const';
import array from './src/array';
import async from './src/async';
import color from './src/color';
import convert from './src/convert';
import date from './src/date';
import file from './src/file';
import number from './src/number';
import object from './src/object';
import random from './src/random';
import string from './src/string';
import time from './src/time';
import timestamp from './src/timestamp';
import type from './src/type';
import coretools from './coretools.wrapper';
// Array functions
coretools.GetUnique = array.GetUnique;
coretools.isArray = array.isArray;
coretools.isIn = array.isIn;
coretools.isInArray = array.isInArray;
coretools.isNotIn = array.isNotIn;
coretools.isNotInArray = array.isNotInArray;
coretools.isValidIndex = array.isValidIndex;
// Async functions
coretools.ExecuteCallbackWithParams = async.ExecuteCallbackWithParams;
coretools.Sleep = async.Sleep;
// Color functions
coretools.isSameColor = color.isSameColor;
// Convert functions
coretools.ConvertDecimalToHex = convert.ConvertDecimalToHex;
coretools.ConvertHSLToHex = convert.ConvertHSLToHex;
// Date functions
coretools.GetAge = date.GetAge;
coretools.GetDateInt = date.GetDateInt;
coretools.GetDateRangeToNow = date.GetDateRangeToNow;
coretools.GetDateRangeToNowStartEnd = date.GetDateRangeToNowStartEnd;
coretools.GetDatesBetween = date.GetDatesBetween;
coretools.GetDayAgo = date.GetDayAgo;
coretools.GetDayDiffBetween = date.GetDayDiffBetween;
coretools.GetDayDiffNow = date.GetDayDiffNow;
coretools.GetDayEnd = date.GetDayEnd;
coretools.GetDayStart = date.GetDayStart;
coretools.GetEndOfWeek = date.GetEndOfWeek;
coretools.GetFormattedDate = date.GetFormattedDate;
coretools.GetLastSunday = date.GetLastSunday;
coretools.GetMonthDiff = date.GetMonthDiff;
coretools.GetMonthRange = date.GetMonthRange;
coretools.GetNextMonth = date.GetNextMonth;
coretools.GetNextYearMonth = date.GetNextYearMonth;
coretools.GetPrevMonth = date.GetPrevMonth;
coretools.GetStartOfWeek = date.GetStartOfWeek;
coretools.GetThisMonthRange = date.GetThisMonthRange;
coretools.GetTomorrow = date.GetTomorrow;
coretools.GetYesterday = date.GetYesterday;
coretools.isDate = date.isDate;
coretools.isDateRangeSet = date.isDateRangeSet;
coretools.isInDateRange = date.isInDateRange;
coretools.isSameDate = date.isSameDate;
coretools.isSameDateRange = date.isSameDateRange;
coretools.SubtractMonths = date.SubtractMonths;
coretools.SubtractYears = date.SubtractYears;
coretools.ymdhhmmToDate = date.ymdhhmmToDate;
coretools.ymdSlotNoToDate = date.ymdSlotNoToDate;
coretools.ymdToDate = date.ymdToDate;
// File functions
coretools.GetFileExtension = file.GetFileExtension;
coretools.MakePath = file.MakePath;
// Number functions
coretools.FormatBytes = number.FormatBytes;
coretools.GetDecimalPoint = number.GetDecimalPoint;
coretools.isApproxEqual = number.isApproxEqual;
coretools.isNumber = number.isNumber;
coretools.isNumberNegative = number.isNumberNegative;
coretools.isNumberPositive = number.isNumberPositive;
coretools.isZero = number.isZero;
// Object functions
coretools.FilterJsonWithoutEmptyKey = object.FilterJsonWithoutEmptyKey;
coretools.hasKey = object.hasKey;
coretools.hasKeyAll = object.hasKeyAll;
coretools.hasKeyButNotIn = object.hasKeyButNotIn;
coretools.hasKeyIn = object.hasKeyIn;
coretools.hasKeyNonEmpty = object.hasKeyNonEmpty;
coretools.hasKeyNumberPositive = object.hasKeyNumberPositive;
coretools.isEmpty = object.isEmpty;
coretools.isObject = object.isObject;
coretools.MergeJson = object.MergeJson;
coretools.RenameObjectProperty = object.RenameObjectProperty;
// Random functions
coretools.GenerateGUID = random.GenerateGUID;
coretools.GenerateRandomBytes = random.GenerateRandomBytes;
coretools.GenerateRandomNumberInRange = random.GenerateRandomNumberInRange;
// String functions
coretools.Cut = string.Cut;
coretools.CutW = string.CutW;
coretools.EscapeHTML = string.EscapeHTML;
coretools.GetRepeatString = string.GetRepeatString;
coretools.isAlphaNumeric = string.isAlphaNumeric;
coretools.isCharInRange = string.isCharInRange;
coretools.isKoreanChar = string.isKoreanChar;
coretools.Len = string.Len;
coretools.LenByte = string.LenByte;
coretools.MergeTagString = string.MergeTagString;
coretools.pad = string.pad;
coretools.padZero = string.padZero;
coretools.SplitTagString = string.SplitTagString;
// Time functions
coretools.hhmm2min = time.hhmm2min;
coretools.hhmm2slotNo15min = time.hhmm2slotNo15min;
coretools.hhmm2slotNo30min = time.hhmm2slotNo30min;
coretools.hhmm2slotNoByDuration = time.hhmm2slotNoByDuration;
coretools.hhmmSplit = time.hhmmSplit;
coretools.slotNo2hhmm = time.slotNo2hhmm;
// Timestamp functions
coretools.GetDateFromMs = timestamp.GetDateFromMs;
coretools.GetDateFromTs = timestamp.GetDateFromTs;
coretools.GetUnix = timestamp.GetUnix;
coretools.isTimestamp = timestamp.isTimestamp;
// Type functions
coretools.isFunction = type.isFunction;
/**
* The semantic version number.
*
* @static
* @memberOf _
* @type {string}
*/
coretools.version = VERSION;
export default coretools;