-
Notifications
You must be signed in to change notification settings - Fork 815
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
feat(typescript-examples): _.pull #310
feat(typescript-examples): _.pull #310
Conversation
1 similar comment
Interestingly this is an example where the native alternative suggested is not equivalent.. lodash updates the array in-place. |
I guess you're right. I do not introduce this difference here though, because the original example already has that «flaw». IMHO it isn't really a flaw though, because being a side effect is one of the things I specifically dislike with lodash and many other classic js libs. I think it might be good to point out that difference in the example though. |
5287e75
to
ba3a8e1
Compare
ba3a8e1
to
149ee7c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
…score to v6.13.0 (#84) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [eslint-plugin-you-dont-need-lodash-underscore](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore.git) ([source](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore)) | devDependencies | minor | [`6.12.0` -> `6.13.0`](https://renovatebot.com/diffs/npm/eslint-plugin-you-dont-need-lodash-underscore/6.12.0/6.13.0) | --- ### Release Notes <details> <summary>you-dont-need/You-Dont-Need-Lodash-Underscore (eslint-plugin-you-dont-need-lodash-underscore)</summary> ### [`v6.13.0`](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/releases/tag/v6.13.0) [Compare Source](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/compare/v6.12.0...v6.13.0) #### What's Changed - Add \_.capitalize by [@​iandrewt](https://togithub.com/iandrewt) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/320](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/320) - Add \_.unionBy by [@​iandrewt](https://togithub.com/iandrewt) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/319](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/319) - Add rule for \_.defaults by [@​cupofjoakim](https://togithub.com/cupofjoakim) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/322](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/322) - Remove duplicate \_.uniq by [@​Semigradsky](https://togithub.com/Semigradsky) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/325](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/325) - adding \_.uniqWith by [@​JasonCubic](https://togithub.com/JasonCubic) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/323](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/323) - Fix \_.isString alternative by [@​Semigradsky](https://togithub.com/Semigradsky) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/324](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/324) - Add \_.isDate by [@​MarcosEllys](https://togithub.com/MarcosEllys) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/326](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/326) - Remove unnecessary falsey checks by [@​suspiciousfellow](https://togithub.com/suspiciousfellow) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/328](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/328) - Add \_.lowerFirst by [@​Semigradsky](https://togithub.com/Semigradsky) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/329](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/329) - Add more suggestions for \_.first by [@​twjasa](https://togithub.com/twjasa) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/332](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/332) - Add note to `isArrayBuffer` and add it to eslint plugin by [@​Semigradsky](https://togithub.com/Semigradsky) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/330](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/330) - feat(typescript-examples): \_.pull by [@​casaper](https://togithub.com/casaper) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/310](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/310) - feat: add lodash/fp support by [@​jpickwell](https://togithub.com/jpickwell) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/341](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/341) - Add Array.at(-1) which equals to \_.last by [@​kingyue737](https://togithub.com/kingyue737) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/343](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/343) - update collectionKeyBy so it works for objects by [@​ImTheTom](https://togithub.com/ImTheTom) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/345](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/345) - Fix: errorneous description for \_.isNull by [@​Koura](https://togithub.com/Koura) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/336](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/336) - Update README.md by [@​BtM909](https://togithub.com/BtM909) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/357](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/357) - Bump qs from 6.3.2 to 6.3.3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/354](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/354) - Docs: remove david-dm.org badge from README by [@​SukkaW](https://togithub.com/SukkaW) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/348](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/348) - Bump minimatch from 3.0.4 to 3.1.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/358](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/358) - Fix \_first test by [@​AlexP11223](https://togithub.com/AlexP11223) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/352](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/352) - Update edge support in README.md by [@​gilly3](https://togithub.com/gilly3) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/360](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/360) - The debounce function does not work if 'immediate' is true by [@​ChenKun1997](https://togithub.com/ChenKun1997) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/362](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/362) - feat: add workflows PR & master by [@​Abdel-Monaam-Aouini](https://togithub.com/Abdel-Monaam-Aouini) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/359](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/359) - fix: add package-lock to run workflow by [@​Abdel-Monaam-Aouini](https://togithub.com/Abdel-Monaam-Aouini) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/364](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/364) - head, first & last rules by [@​Endremgs](https://togithub.com/Endremgs) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/373](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/373) - Update README.md by [@​TawalMc](https://togithub.com/TawalMc) in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/374](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/374) #### New Contributors - [@​iandrewt](https://togithub.com/iandrewt) made their first contribution in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/320](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/320) - [@​Semigradsky](https://togithub.com/Semigradsky) made their first contribution in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/325](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/325) - [@​JasonCubic](https://togithub.com/JasonCubic) made their first contribution in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/323](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/323) - [@​MarcosEllys](https://togithub.com/MarcosEllys) made their first contribution in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/326](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/326) - [@​suspiciousfellow](https://togithub.com/suspiciousfellow) made their first contribution in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/328](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/328) - [@​twjasa](https://togithub.com/twjasa) made their first contribution in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/332](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/332) - [@​jpickwell](https://togithub.com/jpickwell) made their first contribution in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/341](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/341) - [@​kingyue737](https://togithub.com/kingyue737) made their first contribution in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/343](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/343) - [@​ImTheTom](https://togithub.com/ImTheTom) made their first contribution in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/345](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/345) - [@​Koura](https://togithub.com/Koura) made their first contribution in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/336](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/336) - [@​BtM909](https://togithub.com/BtM909) made their first contribution in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/357](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/357) - [@​AlexP11223](https://togithub.com/AlexP11223) made their first contribution in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/352](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/352) - [@​gilly3](https://togithub.com/gilly3) made their first contribution in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/360](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/360) - [@​ChenKun1997](https://togithub.com/ChenKun1997) made their first contribution in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/362](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/362) - [@​Abdel-Monaam-Aouini](https://togithub.com/Abdel-Monaam-Aouini) made their first contribution in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/359](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/359) - [@​Endremgs](https://togithub.com/Endremgs) made their first contribution in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/373](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/373) - [@​TawalMc](https://togithub.com/TawalMc) made their first contribution in [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/374](https://togithub.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/374) **Full Changelog**: you-dont-need/You-Dont-Need-Lodash-Underscore@v6.12.0...v6.13.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMDkuNCIsInVwZGF0ZWRJblZlciI6IjM2LjEwOS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
A start for converting examples to typescript.
Starting to full fill my own created issue #309.