Skip to content

refactor: dot prop delete mutable#14

Merged
brunozoric merged 3 commits into
mainfrom
bruno/refactor/dot-prop-delete-mutable
May 21, 2026
Merged

refactor: dot prop delete mutable#14
brunozoric merged 3 commits into
mainfrom
bruno/refactor/dot-prop-delete-mutable

Conversation

@brunozoric
Copy link
Copy Markdown
Contributor

No description provided.

brunozoric and others added 3 commits May 21, 2026 17:11
dot-prop's deleteProperty already handles array slots via string keys,
but our type signature only accepted Record + string. Add a function
overload that accepts T[] + number so callers can pass a numeric index
directly. Delegates to dot-prop (sparse hole, not splice).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…tests

Both immutableDelete and mutableDelete now accept a numeric index
when the target is an array, splicing the element out (matching
dot-prop-immutable behaviour). Tests split from a single file into
__tests__/dotProp/ with one file per function.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@brunozoric brunozoric self-assigned this May 21, 2026
@brunozoric brunozoric merged commit fd576ba into main May 21, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant