es-toolkit 1.22.0-dev.702 → 1.22.0-dev.704

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.
@@ -23,10 +23,7 @@ function includes(source, target, fromIndex, guard) {
23
23
  if (Array.isArray(source)) {
24
24
  return source.includes(target, fromIndex);
25
25
  }
26
- const keys = [];
27
- for (const key in source) {
28
- keys.push(key);
29
- }
26
+ const keys = Object.keys(source);
30
27
  if (fromIndex < 0) {
31
28
  fromIndex = Math.max(0, keys.length + fromIndex);
32
29
  }
@@ -10,7 +10,7 @@ const randomInt = require('../_chunk/randomInt-CF7bZK.js');
10
10
  const toMerged = require('../_chunk/toMerged-QkD_NC.js');
11
11
  const isPlainObject$1 = require('../_chunk/isPlainObject-DgrsU7.js');
12
12
  const isWeakSet$1 = require('../_chunk/isWeakSet-CsTXLi.js');
13
- const pad$1 = require('../_chunk/pad-v_6EEn.js');
13
+ const pad$1 = require('../_chunk/pad-BWiShN.js');
14
14
 
15
15
  function castArray(value) {
16
16
  if (arguments.length === 0) {
@@ -633,10 +633,7 @@ function includes(source, target, fromIndex, guard) {
633
633
  if (Array.isArray(source)) {
634
634
  return source.includes(target, fromIndex);
635
635
  }
636
- const keys = [];
637
- for (const key in source) {
638
- keys.push(key);
639
- }
636
+ const keys = Object.keys(source);
640
637
  if (fromIndex < 0) {
641
638
  fromIndex = Math.max(0, keys.length + fromIndex);
642
639
  }
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ const toMerged = require('./_chunk/toMerged-QkD_NC.js');
15
15
  const isWeakSet = require('./_chunk/isWeakSet-CsTXLi.js');
16
16
  const predicate_index = require('./predicate/index.js');
17
17
  const isPlainObject = require('./_chunk/isPlainObject-DgrsU7.js');
18
- const pad = require('./_chunk/pad-v_6EEn.js');
18
+ const pad = require('./_chunk/pad-BWiShN.js');
19
19
  const string_index = require('./string/index.js');
20
20
 
21
21
 
@@ -1,4 +1,4 @@
1
- const CASE_SPLIT_PATTERN = /[A-Z]?[a-z]+|[0-9]+|[A-Z]+(?![a-z])|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;
1
+ const CASE_SPLIT_PATTERN = /\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;
2
2
  function getWords(str) {
3
3
  return Array.from(str.match(CASE_SPLIT_PATTERN) ?? []);
4
4
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const pad = require('../_chunk/pad-v_6EEn.js');
5
+ const pad = require('../_chunk/pad-BWiShN.js');
6
6
 
7
7
  function startCase(str) {
8
8
  const words = pad.getWords(str.trim());
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "es-toolkit",
3
3
  "description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
4
- "version": "1.22.0-dev.702+674d0868",
4
+ "version": "1.22.0-dev.704+7e4dd66c",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {