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

Feature parity with built-in Array methods #59

Open
9 of 28 tasks
katis opened this issue Apr 19, 2019 · 0 comments
Open
9 of 28 tasks

Feature parity with built-in Array methods #59

katis opened this issue Apr 19, 2019 · 0 comments

Comments

@katis
Copy link
Contributor

katis commented Apr 19, 2019

proem/array needs to be able to do at least the same things that built-in Array methods can do, but in an
immutable context. Below is a list of Array methods and functions and if proem already implements their
equivalents. Not all of these make sense in immutable code, so let's discuss about it if you want to start
working on a function.

  • Array​.from
  • Array​.isArray
  • Array​.prototype​.concat
  • Array​.prototype​.entries
  • Array​.prototype​.every
  • Array​.prototype​.fill
  • Array​.prototype​.filter
  • Array​.prototype​.find
  • Array​.prototype​.find​Index (not exported!)
  • Array​.prototype​.flat
  • Array​.prototype​.flatMap
  • Array​.prototype​.for​Each
  • Array​.prototype​.includes
  • Array​.prototype​.indexOf
  • Array​.prototype​.join
  • Array​.prototype​.last​IndexOf
  • Array​.prototype​.map
  • Array​.prototype​.pop (array.drop)
  • Array​.prototype​.push
  • Array​.prototype​.reduce
  • Array​.prototype​.reduce​Right
  • Array​.prototype​.reverse
  • Array​.prototype​.shift
  • Array​.prototype​.slice
  • Array​.prototype​.some
  • Array​.prototype​.sort
  • Array​.prototype​.splice
  • Array​.prototype​.unshift

See MDN for more indepth descriptions about the Array methods

@deiga deiga pinned this issue Apr 24, 2019
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

No branches or pull requests

1 participant