si-funciona 2.3.3 → 2.3.4
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/README.md +1337 -1244
- package/browser/siFunciona.js +24205 -24146
- package/dist/helpers/arrays/BasicQueue.d.ts +65 -61
- package/dist/helpers/arrays/BasicQueue.js +62 -59
- package/dist/helpers/arrays.d.ts +21 -20
- package/dist/helpers/arrays.js +33 -32
- package/dist/helpers/descriptors/assignDescriptor.d.ts +14 -11
- package/dist/helpers/descriptors/assignDescriptor.js +58 -55
- package/dist/helpers/descriptors/assignDescriptorDetail.d.ts +14 -11
- package/dist/helpers/descriptors/assignDescriptorDetail.js +37 -34
- package/dist/helpers/descriptors/checkClearValues.d.ts +12 -11
- package/dist/helpers/descriptors/checkClearValues.js +21 -20
- package/dist/helpers/descriptors/checkDescriptorComplete.d.ts +11 -10
- package/dist/helpers/descriptors/checkDescriptorComplete.js +20 -19
- package/dist/helpers/descriptors/cloneDescriptor.d.ts +10 -10
- package/dist/helpers/descriptors/cloneDescriptor.js +36 -36
- package/dist/helpers/descriptors/cloneDescriptorDetail.d.ts +10 -10
- package/dist/helpers/descriptors/cloneDescriptorDetail.js +27 -27
- package/dist/helpers/descriptors/compareDescriptor.d.ts +13 -11
- package/dist/helpers/descriptors/compareDescriptor.js +33 -31
- package/dist/helpers/descriptors/describeObject.d.ts +15 -13
- package/dist/helpers/descriptors/describeObject.js +53 -51
- package/dist/helpers/descriptors/describeObjectDetail.d.ts +14 -12
- package/dist/helpers/descriptors/describeObjectDetail.js +38 -36
- package/dist/helpers/descriptors/describeObjectMap.d.ts +36 -20
- package/dist/helpers/descriptors/describeObjectMap.js +108 -92
- package/dist/helpers/descriptors/nextReference.d.ts +13 -11
- package/dist/helpers/descriptors/nextReference.js +31 -29
- package/dist/helpers/descriptors/sameDescriptor.d.ts +13 -11
- package/dist/helpers/descriptors/sameDescriptor.js +22 -20
- package/dist/helpers/descriptors/samples/descriptor.d.ts +34 -27
- package/dist/helpers/descriptors/samples/descriptorDetail.d.ts +42 -34
- package/dist/helpers/descriptors/samples/descriptorMap.d.ts +16 -12
- package/dist/helpers/descriptors/samples/mappedDescriptorMap.d.ts +10 -7
- package/dist/helpers/descriptors/samples/mappedDescriptorMap.js +287 -284
- package/dist/helpers/descriptors.d.ts +44 -28
- package/dist/helpers/descriptors.js +58 -42
- package/dist/helpers/functions/makeBasicQueue.d.ts +10 -10
- package/dist/helpers/functions/makeBasicQueue.js +19 -19
- package/dist/helpers/functions/queueManager.d.ts +49 -47
- package/dist/helpers/functions/queueManager.js +124 -122
- package/dist/helpers/functions/relevancyFilter.d.ts +35 -35
- package/dist/helpers/functions/relevancyFilter.js +34 -34
- package/dist/helpers/functions/trace.d.ts +14 -12
- package/dist/helpers/functions/trace.js +25 -23
- package/dist/helpers/numbers/lowestCommonDenominator.d.ts +10 -10
- package/dist/helpers/numbers/lowestCommonDenominator.js +20 -20
- package/dist/helpers/strings/camelCase.d.ts +9 -9
- package/dist/helpers/strings/camelCase.js +20 -20
- package/dist/helpers/strings/kabobCase.d.ts +9 -9
- package/dist/helpers/strings/kabobCase.js +19 -19
- package/dist/helpers/strings/makeFilepath.d.ts +9 -9
- package/dist/helpers/strings/makeFilepath.js +49 -49
- package/dist/helpers/strings/makeRelativePath.d.ts +9 -9
- package/dist/helpers/strings/makeRelativePath.js +43 -43
- package/dist/helpers/strings/regexEscape.d.ts +8 -8
- package/dist/helpers/strings/regexEscape.js +15 -15
- package/dist/helpers/strings/snakeCase.d.ts +9 -9
- package/dist/helpers/strings/snakeCase.js +19 -19
- package/dist/helpers/strings/strAfter.d.ts +10 -10
- package/dist/helpers/strings/strAfter.js +19 -19
- package/dist/helpers/strings/strAfterLast.d.ts +10 -10
- package/dist/helpers/strings/strAfterLast.js +19 -19
- package/dist/helpers/strings/strBefore.d.ts +10 -10
- package/dist/helpers/strings/strBefore.js +19 -19
- package/dist/helpers/strings/strBeforeLast.d.ts +10 -10
- package/dist/helpers/strings/strBeforeLast.js +19 -19
- package/dist/helpers/strings/titleCase.d.ts +9 -9
- package/dist/helpers/strings/titleCase.js +20 -20
- package/dist/helpers/strings/ucFirst.d.ts +9 -9
- package/dist/helpers/strings/ucFirst.js +15 -15
- package/dist/helpers/strings/words.d.ts +10 -9
- package/dist/helpers/strings/words.js +16 -15
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
})
|
|
6
|
-
exports.default = void 0
|
|
7
|
-
require('core-js/modules/esnext.iterator.constructor.js')
|
|
8
|
-
require('core-js/modules/esnext.iterator.reduce.js')
|
|
9
|
-
require('core-js/stable')
|
|
10
|
-
var _words = _interopRequireDefault(require('./words'))
|
|
11
|
-
function _interopRequireDefault (e) { return e && e.__esModule ? e : { default: e } }
|
|
12
|
-
/**
|
|
13
|
-
* Given a string in kebab-case, camelCase or 'Sentence case', convert to snake_case.
|
|
14
|
-
* @memberOf module:stringHelpers
|
|
15
|
-
* @param {string} str
|
|
16
|
-
* @returns {string}
|
|
17
|
-
*/
|
|
18
|
-
const snakeCase = str => (0, _words.default)(str).reduce((snake, part) => snake ? snake.concat('_' + part.toLowerCase()) : part.toLowerCase(), '')
|
|
19
|
-
var _default = exports.default = snakeCase
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
})
|
|
6
|
+
exports.default = void 0
|
|
7
|
+
require('core-js/modules/esnext.iterator.constructor.js')
|
|
8
|
+
require('core-js/modules/esnext.iterator.reduce.js')
|
|
9
|
+
require('core-js/stable')
|
|
10
|
+
var _words = _interopRequireDefault(require('./words'))
|
|
11
|
+
function _interopRequireDefault (e) { return e && e.__esModule ? e : { default: e } }
|
|
12
|
+
/**
|
|
13
|
+
* Given a string in kebab-case, camelCase or 'Sentence case', convert to snake_case.
|
|
14
|
+
* @memberOf module:stringHelpers
|
|
15
|
+
* @param {string} str - The string to convert.
|
|
16
|
+
* @returns {string}
|
|
17
|
+
*/
|
|
18
|
+
const snakeCase = str => (0, _words.default)(str).reduce((snake, part) => snake ? snake.concat('_' + part.toLowerCase()) : part.toLowerCase(), '')
|
|
19
|
+
var _default = exports.default = snakeCase
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import 'core-js/stable';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieve the string part after the search match.
|
|
4
|
-
* @memberOf module:stringHelpers
|
|
5
|
-
* @param {string} str
|
|
6
|
-
* @param {string} search
|
|
7
|
-
* @returns {string}
|
|
8
|
-
*/
|
|
9
|
-
declare const strAfter: (str: string, search: string) => string;
|
|
10
|
-
export default strAfter;
|
|
1
|
+
import 'core-js/stable';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieve the string part after the search match.
|
|
4
|
+
* @memberOf module:stringHelpers
|
|
5
|
+
* @param {string} str - The string to search within.
|
|
6
|
+
* @param {string} search - The substring to search for.
|
|
7
|
+
* @returns {string} The portion of `str` after the first occurrence of `search`, or `''` if not found.
|
|
8
|
+
*/
|
|
9
|
+
declare const strAfter: (str: string, search: string) => string;
|
|
10
|
+
export default strAfter;
|
|
11
11
|
//# sourceMappingURL=strAfter.d.ts.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
})
|
|
6
|
-
exports.default = void 0
|
|
7
|
-
require('core-js/stable')
|
|
8
|
-
/**
|
|
9
|
-
* Retrieve the string part after the search match.
|
|
10
|
-
* @memberOf module:stringHelpers
|
|
11
|
-
* @param {string} str
|
|
12
|
-
* @param {string} search
|
|
13
|
-
* @returns {string}
|
|
14
|
-
*/
|
|
15
|
-
const strAfter = (str, search) => {
|
|
16
|
-
const index = str.indexOf(search)
|
|
17
|
-
return index === -1 ? '' : str.substring(index + search.length)
|
|
18
|
-
}
|
|
19
|
-
var _default = exports.default = strAfter
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
})
|
|
6
|
+
exports.default = void 0
|
|
7
|
+
require('core-js/stable')
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve the string part after the search match.
|
|
10
|
+
* @memberOf module:stringHelpers
|
|
11
|
+
* @param {string} str - The string to search within.
|
|
12
|
+
* @param {string} search - The substring to search for.
|
|
13
|
+
* @returns {string} The portion of `str` after the first occurrence of `search`, or `''` if not found.
|
|
14
|
+
*/
|
|
15
|
+
const strAfter = (str, search) => {
|
|
16
|
+
const index = str.indexOf(search)
|
|
17
|
+
return index === -1 ? '' : str.substring(index + search.length)
|
|
18
|
+
}
|
|
19
|
+
var _default = exports.default = strAfter
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import 'core-js/stable';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieve the string part after the last search match.
|
|
4
|
-
* @memberOf module:stringHelpers
|
|
5
|
-
* @param {string} str
|
|
6
|
-
* @param {string} search
|
|
7
|
-
* @returns {string}
|
|
8
|
-
*/
|
|
9
|
-
declare const strAfterLast: (str: string, search: string) => string;
|
|
10
|
-
export default strAfterLast;
|
|
1
|
+
import 'core-js/stable';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieve the string part after the last search match.
|
|
4
|
+
* @memberOf module:stringHelpers
|
|
5
|
+
* @param {string} str - The string to search within.
|
|
6
|
+
* @param {string} search - The substring to search for.
|
|
7
|
+
* @returns {string} The portion of `str` after the last occurrence of `search`, or `''` if not found.
|
|
8
|
+
*/
|
|
9
|
+
declare const strAfterLast: (str: string, search: string) => string;
|
|
10
|
+
export default strAfterLast;
|
|
11
11
|
//# sourceMappingURL=strAfterLast.d.ts.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
})
|
|
6
|
-
exports.default = void 0
|
|
7
|
-
require('core-js/stable')
|
|
8
|
-
/**
|
|
9
|
-
* Retrieve the string part after the last search match.
|
|
10
|
-
* @memberOf module:stringHelpers
|
|
11
|
-
* @param {string} str
|
|
12
|
-
* @param {string} search
|
|
13
|
-
* @returns {string}
|
|
14
|
-
*/
|
|
15
|
-
const strAfterLast = (str, search) => {
|
|
16
|
-
const index = str.lastIndexOf(search)
|
|
17
|
-
return index === -1 ? '' : str.substring(index + search.length)
|
|
18
|
-
}
|
|
19
|
-
var _default = exports.default = strAfterLast
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
})
|
|
6
|
+
exports.default = void 0
|
|
7
|
+
require('core-js/stable')
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve the string part after the last search match.
|
|
10
|
+
* @memberOf module:stringHelpers
|
|
11
|
+
* @param {string} str - The string to search within.
|
|
12
|
+
* @param {string} search - The substring to search for.
|
|
13
|
+
* @returns {string} The portion of `str` after the last occurrence of `search`, or `''` if not found.
|
|
14
|
+
*/
|
|
15
|
+
const strAfterLast = (str, search) => {
|
|
16
|
+
const index = str.lastIndexOf(search)
|
|
17
|
+
return index === -1 ? '' : str.substring(index + search.length)
|
|
18
|
+
}
|
|
19
|
+
var _default = exports.default = strAfterLast
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import 'core-js/stable';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieve the string part before the search match.
|
|
4
|
-
* @memberOf module:stringHelpers
|
|
5
|
-
* @param {string} str
|
|
6
|
-
* @param {string} search
|
|
7
|
-
* @returns {string}
|
|
8
|
-
*/
|
|
9
|
-
declare const strBefore: (str: string, search: string) => string;
|
|
10
|
-
export default strBefore;
|
|
1
|
+
import 'core-js/stable';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieve the string part before the search match.
|
|
4
|
+
* @memberOf module:stringHelpers
|
|
5
|
+
* @param {string} str - The string to search within.
|
|
6
|
+
* @param {string} search - The substring to search for.
|
|
7
|
+
* @returns {string} The portion of `str` before the first occurrence of `search`, or `''` if not found.
|
|
8
|
+
*/
|
|
9
|
+
declare const strBefore: (str: string, search: string) => string;
|
|
10
|
+
export default strBefore;
|
|
11
11
|
//# sourceMappingURL=strBefore.d.ts.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
})
|
|
6
|
-
exports.default = void 0
|
|
7
|
-
require('core-js/stable')
|
|
8
|
-
/**
|
|
9
|
-
* Retrieve the string part before the search match.
|
|
10
|
-
* @memberOf module:stringHelpers
|
|
11
|
-
* @param {string} str
|
|
12
|
-
* @param {string} search
|
|
13
|
-
* @returns {string}
|
|
14
|
-
*/
|
|
15
|
-
const strBefore = (str, search) => {
|
|
16
|
-
const index = str.indexOf(search)
|
|
17
|
-
return index === -1 ? '' : str.slice(0, index)
|
|
18
|
-
}
|
|
19
|
-
var _default = exports.default = strBefore
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
})
|
|
6
|
+
exports.default = void 0
|
|
7
|
+
require('core-js/stable')
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve the string part before the search match.
|
|
10
|
+
* @memberOf module:stringHelpers
|
|
11
|
+
* @param {string} str - The string to search within.
|
|
12
|
+
* @param {string} search - The substring to search for.
|
|
13
|
+
* @returns {string} The portion of `str` before the first occurrence of `search`, or `''` if not found.
|
|
14
|
+
*/
|
|
15
|
+
const strBefore = (str, search) => {
|
|
16
|
+
const index = str.indexOf(search)
|
|
17
|
+
return index === -1 ? '' : str.slice(0, index)
|
|
18
|
+
}
|
|
19
|
+
var _default = exports.default = strBefore
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import 'core-js/stable';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieve the string part
|
|
4
|
-
* @memberOf module:stringHelpers
|
|
5
|
-
* @param {string} str
|
|
6
|
-
* @param {string} search
|
|
7
|
-
* @returns {string}
|
|
8
|
-
*/
|
|
9
|
-
declare const strBeforeLast: (str: string, search: string) => string;
|
|
10
|
-
export default strBeforeLast;
|
|
1
|
+
import 'core-js/stable';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieve the string part before the last search match.
|
|
4
|
+
* @memberOf module:stringHelpers
|
|
5
|
+
* @param {string} str - The string to search within.
|
|
6
|
+
* @param {string} search - The substring to search for.
|
|
7
|
+
* @returns {string} The portion of `str` before the last occurrence of `search`, or `''` if not found.
|
|
8
|
+
*/
|
|
9
|
+
declare const strBeforeLast: (str: string, search: string) => string;
|
|
10
|
+
export default strBeforeLast;
|
|
11
11
|
//# sourceMappingURL=strBeforeLast.d.ts.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
})
|
|
6
|
-
exports.default = void 0
|
|
7
|
-
require('core-js/stable')
|
|
8
|
-
/**
|
|
9
|
-
* Retrieve the string part
|
|
10
|
-
* @memberOf module:stringHelpers
|
|
11
|
-
* @param {string} str
|
|
12
|
-
* @param {string} search
|
|
13
|
-
* @returns {string}
|
|
14
|
-
*/
|
|
15
|
-
const strBeforeLast = (str, search) => {
|
|
16
|
-
const index = str.lastIndexOf(search)
|
|
17
|
-
return index === -1 ? '' : str.substring(0, index)
|
|
18
|
-
}
|
|
19
|
-
var _default = exports.default = strBeforeLast
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
})
|
|
6
|
+
exports.default = void 0
|
|
7
|
+
require('core-js/stable')
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve the string part before the last search match.
|
|
10
|
+
* @memberOf module:stringHelpers
|
|
11
|
+
* @param {string} str - The string to search within.
|
|
12
|
+
* @param {string} search - The substring to search for.
|
|
13
|
+
* @returns {string} The portion of `str` before the last occurrence of `search`, or `''` if not found.
|
|
14
|
+
*/
|
|
15
|
+
const strBeforeLast = (str, search) => {
|
|
16
|
+
const index = str.lastIndexOf(search)
|
|
17
|
+
return index === -1 ? '' : str.substring(0, index)
|
|
18
|
+
}
|
|
19
|
+
var _default = exports.default = strBeforeLast
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import 'core-js/stable';
|
|
2
|
-
/**
|
|
3
|
-
* Given a string in kebab-case, snake_case, camelCase or 'Sentence case', convert to 'Title Case'.
|
|
4
|
-
* @memberOf module:stringHelpers
|
|
5
|
-
* @param {string} str
|
|
6
|
-
* @returns {string}
|
|
7
|
-
*/
|
|
8
|
-
declare const titleCase: (str: string) => string;
|
|
9
|
-
export default titleCase;
|
|
1
|
+
import 'core-js/stable';
|
|
2
|
+
/**
|
|
3
|
+
* Given a string in kebab-case, snake_case, camelCase or 'Sentence case', convert to 'Title Case'.
|
|
4
|
+
* @memberOf module:stringHelpers
|
|
5
|
+
* @param {string} str - The string to convert.
|
|
6
|
+
* @returns {string}
|
|
7
|
+
*/
|
|
8
|
+
declare const titleCase: (str: string) => string;
|
|
9
|
+
export default titleCase;
|
|
10
10
|
//# sourceMappingURL=titleCase.d.ts.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
})
|
|
6
|
-
exports.default = void 0
|
|
7
|
-
require('core-js/modules/esnext.iterator.constructor.js')
|
|
8
|
-
require('core-js/modules/esnext.iterator.reduce.js')
|
|
9
|
-
require('core-js/stable')
|
|
10
|
-
var _ucFirst = _interopRequireDefault(require('./ucFirst'))
|
|
11
|
-
var _words = _interopRequireDefault(require('./words'))
|
|
12
|
-
function _interopRequireDefault (e) { return e && e.__esModule ? e : { default: e } }
|
|
13
|
-
/**
|
|
14
|
-
* Given a string in kebab-case, snake_case, camelCase or 'Sentence case', convert to 'Title Case'.
|
|
15
|
-
* @memberOf module:stringHelpers
|
|
16
|
-
* @param {string} str
|
|
17
|
-
* @returns {string}
|
|
18
|
-
*/
|
|
19
|
-
const titleCase = str => (0, _words.default)(str).reduce((title, part) => title ? title.concat(' ' + (0, _ucFirst.default)(part)) : (0, _ucFirst.default)(part), '')
|
|
20
|
-
var _default = exports.default = titleCase
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
})
|
|
6
|
+
exports.default = void 0
|
|
7
|
+
require('core-js/modules/esnext.iterator.constructor.js')
|
|
8
|
+
require('core-js/modules/esnext.iterator.reduce.js')
|
|
9
|
+
require('core-js/stable')
|
|
10
|
+
var _ucFirst = _interopRequireDefault(require('./ucFirst'))
|
|
11
|
+
var _words = _interopRequireDefault(require('./words'))
|
|
12
|
+
function _interopRequireDefault (e) { return e && e.__esModule ? e : { default: e } }
|
|
13
|
+
/**
|
|
14
|
+
* Given a string in kebab-case, snake_case, camelCase or 'Sentence case', convert to 'Title Case'.
|
|
15
|
+
* @memberOf module:stringHelpers
|
|
16
|
+
* @param {string} str - The string to convert.
|
|
17
|
+
* @returns {string}
|
|
18
|
+
*/
|
|
19
|
+
const titleCase = str => (0, _words.default)(str).reduce((title, part) => title ? title.concat(' ' + (0, _ucFirst.default)(part)) : (0, _ucFirst.default)(part), '')
|
|
20
|
+
var _default = exports.default = titleCase
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import 'core-js/stable';
|
|
2
|
-
/**
|
|
3
|
-
* Given a string, make the first character uppercase and the rest lowercase.
|
|
4
|
-
* @memberOf module:stringHelpers
|
|
5
|
-
* @param {string} str
|
|
6
|
-
* @returns {string}
|
|
7
|
-
*/
|
|
8
|
-
declare const ucFirst: (str: string) => string;
|
|
9
|
-
export default ucFirst;
|
|
1
|
+
import 'core-js/stable';
|
|
2
|
+
/**
|
|
3
|
+
* Given a string, make the first character uppercase and the rest lowercase.
|
|
4
|
+
* @memberOf module:stringHelpers
|
|
5
|
+
* @param {string} str - The string to convert.
|
|
6
|
+
* @returns {string}
|
|
7
|
+
*/
|
|
8
|
+
declare const ucFirst: (str: string) => string;
|
|
9
|
+
export default ucFirst;
|
|
10
10
|
//# sourceMappingURL=ucFirst.d.ts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
})
|
|
6
|
-
exports.default = void 0
|
|
7
|
-
require('core-js/stable')
|
|
8
|
-
/**
|
|
9
|
-
* Given a string, make the first character uppercase and the rest lowercase.
|
|
10
|
-
* @memberOf module:stringHelpers
|
|
11
|
-
* @param {string} str
|
|
12
|
-
* @returns {string}
|
|
13
|
-
*/
|
|
14
|
-
const ucFirst = str => str.charAt(0).toUpperCase() + str.slice(1).toLowerCase()
|
|
15
|
-
var _default = exports.default = ucFirst
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
})
|
|
6
|
+
exports.default = void 0
|
|
7
|
+
require('core-js/stable')
|
|
8
|
+
/**
|
|
9
|
+
* Given a string, make the first character uppercase and the rest lowercase.
|
|
10
|
+
* @memberOf module:stringHelpers
|
|
11
|
+
* @param {string} str - The string to convert.
|
|
12
|
+
* @returns {string}
|
|
13
|
+
*/
|
|
14
|
+
const ucFirst = str => str.charAt(0).toUpperCase() + str.slice(1).toLowerCase()
|
|
15
|
+
var _default = exports.default = ucFirst
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import 'core-js/stable';
|
|
2
|
-
/**
|
|
3
|
-
* Split a string into sets of numbers or letters
|
|
4
|
-
*
|
|
5
|
-
* @
|
|
6
|
-
* @
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import 'core-js/stable';
|
|
2
|
+
/**
|
|
3
|
+
* Split a string into sets of numbers or letters - the shared tokenizer behind camelCase/kabobCase/snakeCase/
|
|
4
|
+
* titleCase, so each can rebuild the string in its own casing style.
|
|
5
|
+
* @memberOf module:stringHelpers
|
|
6
|
+
* @param {string} str - The string to split.
|
|
7
|
+
* @returns {Array.<string>}
|
|
8
|
+
*/
|
|
9
|
+
declare const words: (str: string) => Array<string>;
|
|
10
|
+
export default words;
|
|
10
11
|
//# sourceMappingURL=words.d.ts.map
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
})
|
|
6
|
-
exports.default = void 0
|
|
7
|
-
require('core-js/stable')
|
|
8
|
-
/**
|
|
9
|
-
* Split a string into sets of numbers or letters
|
|
10
|
-
*
|
|
11
|
-
* @
|
|
12
|
-
* @
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
})
|
|
6
|
+
exports.default = void 0
|
|
7
|
+
require('core-js/stable')
|
|
8
|
+
/**
|
|
9
|
+
* Split a string into sets of numbers or letters - the shared tokenizer behind camelCase/kabobCase/snakeCase/
|
|
10
|
+
* titleCase, so each can rebuild the string in its own casing style.
|
|
11
|
+
* @memberOf module:stringHelpers
|
|
12
|
+
* @param {string} str - The string to split.
|
|
13
|
+
* @returns {Array.<string>}
|
|
14
|
+
*/
|
|
15
|
+
const words = str => str.match(/\d+|[A-Z]?[a-z]+|[A-Za-z]+/g)
|
|
16
|
+
var _default = exports.default = words
|