- Read the Code of Conduct
- If adding a new method, follow the new method instructions
- If an issue exists for this method, add a comment to let everyone know that you are implementing it. This helps us avoid duplicates.
- Fork the repo if you haven't done so already.
- Create a branch from an up-to-date
develop
branch. - Add a file at
./src/<method name>.js
. - Implement the method.
- Document the method using standard JSDoc documentation syntax.
- Import and bind the method to
Array.prototype
inindex.js
. - Add a type definition to
index.d.ts
. - Add tests.
- Push branch to your fork.
- Create a pull request against the
develop
branch of the main repo.
- Add a file at
./test/<method name>.spec.js
. - Add tests for success conditions.
- Add tests for failure conditions according to the MDN documents for the method you are adding. Ensure the proper errors are thrown.