asd-xiv / m

Point free style, functional library for Javascript with focus on object arrays.
https://asd-xiv.github.io/m/
MIT License
4 stars 1 forks source link

feat: adds sliceKeys to filter objects by property key #17

Closed dgilperez closed 2 years ago

dgilperez commented 2 years ago

Primary

  1. Add function sliceKeys to filter objects by property key

Checklist

andreidmt commented 2 years ago

Hey @dgilperez, thanks for the PR but isnt this the same as pluck?

It already supports array of objects, but I would remove it into a separate pluckMany in the future - similar to updateMany

dgilperez commented 2 years ago

Very interesting in deed ... how I keep forgetting about methods already there and that I already use. A naming thing, I guess.

Thanks for that and yes, pluckMany would be useful. I'd see to PR that if I find the case anytime soon!