es-toolkit 1.13.1-dev.302 → 1.13.1-dev.303

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.
@@ -11,7 +11,7 @@ import {
11
11
  set,
12
12
  startsWith,
13
13
  zipObjectDeep
14
- } from "../chunk-BVNAXMKC.mjs";
14
+ } from "../chunk-JNHWGDYT.mjs";
15
15
  import "../chunk-NKLIE2OI.mjs";
16
16
  import "../chunk-XT74R35S.mjs";
17
17
  import {
@@ -180,7 +180,7 @@ import {
180
180
  } from "../chunk-ME352XO7.mjs";
181
181
  import {
182
182
  takeRight
183
- } from "../chunk-IQLKIDXF.mjs";
183
+ } from "../chunk-N3QYJX4T.mjs";
184
184
  import {
185
185
  takeRightWhile
186
186
  } from "../chunk-NTLX2MPV.mjs";
package/dist/index.js CHANGED
@@ -457,8 +457,8 @@ function take(arr, count) {
457
457
  }
458
458
 
459
459
  // src/array/takeRight.ts
460
- function takeRight(arr, count) {
461
- if (count === 0) {
460
+ function takeRight(arr, count = 1) {
461
+ if (count <= 0) {
462
462
  return [];
463
463
  }
464
464
  return arr.slice(-count);