Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update update.js #593

Merged
merged 1 commit into from
Aug 22, 2021
Merged

Update update.js #593

merged 1 commit into from
Aug 22, 2021

Conversation

zdzDesigner
Copy link
Contributor

support index is -1

support index is -1
@selfrefactor
Copy link
Owner

Thanks for the MR, but I'll check with Ramda behavior before approving it.

@selfrefactor
Copy link
Owner

I added a test for negative index and I found out that the results for Rambda and Ramda match. This means that it currently works even without the line you are adding. I'll close this MR, but feel free to comment further.

@selfrefactor
Copy link
Owner

Sorry, it was my mistake. You are correct that without this line, there are equal results for index of -1.

@selfrefactor selfrefactor reopened this Aug 22, 2021
@selfrefactor selfrefactor changed the base branch from master to 6.10.0 August 22, 2021 09:59
@selfrefactor selfrefactor merged commit bf1062d into selfrefactor:6.10.0 Aug 22, 2021
selfrefactor added a commit that referenced this pull request Dec 16, 2021
* feat: test new type of benchmark with r.uniq

* feat: introduce benchmark helper util

* feat: apply new benchmark with r.index.of

* chore: change benchmark commands

* feat: introduce additional benchmark modes

* feat: improve r.uniq.with benchmark

* feat: improve speed of r.uniq.with

* feat: new format for r.all

* benchmark: r.all.pass

* test: r.update with negative index

* feat: add total test count in brute force test

* Update update.js (#593)

support index is -1

* fix: r.update with negative index

* fix: wrong value for total tests

* chore: lint all

* test: missing rambda type for sets

* test: brute force for r.equals

* chore: test patch-package in ci env

* chore@small

* chore: test rambdax with patch.package

* chore: run with lodash

* feat: add set as return value of r.type

* chore: small changes of r.apply mr

* fix: wrong r.drop.repeats.with documentation

* feat: change ci node versions

* chore: small

* feat: change r.compose typings

* feat: r.reduce skip throw on falsy iterable

* chore: revert r.reduce changes

* fix: circular dependency

* test: r.length

* fix: r.length

* test: r.compose length

* fix@issue #604 r.all.pass with multiple inputs

* feat@issue #604 r.any.pass with multiple inputs

* test: r.head with empty array

* fix: typings test

* chore@dnd

* feat@typings r.pipe

* feat@typings revert to old r.pipe

* fix@typings r.compose is copy of r.pipe

* test@typing r.compose

* chore@dnd

* feat@typings r.last

* feat@typings r.head

* chore: add code tour

* chore@dnd

* fix: rollup config

* chore@dnd

* fix@issue #595 improve list cloning

* fix: jest extended

* test@typings r.compose and r.pipe with complex explicit types

* fix@important sync r.compose r.pipe typings

* fix@issue #608 r.compose benchmarks

* feat@typings r.unless

* fix: r.last.index.of

* fix: error as valid return for r.type

* feat: r.ends.with support lists as input

* test: brute force

* feat: clone list util

* fix: remove bad r.chain typing

* fix@typings r.dissoc

* feat@important export types and babel config rename

* feat: r.type with ramda logic

* fix: missing typing for r.compose

* fix@typings r.merge

* fix: r.identical test

* feat@important throw on bad inputs with r.map r.filter

* chore: r.pipe benchmark

* fix: typings tests

* chore@dnd

* fix: r.pipe benchmark

* fix: unit tests

* chore: build

* feat@lint

* feat: change node versions in ci

* fix: use only two node versions in ci

* fix: parse error

Co-authored-by: Dejan Totev <dejan.totev@psinteractive.io>
Co-authored-by: zdzDesigner <1696498456@qq.com>
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.

2 participants