Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves #561. Summary of changes: - It is now possible to run the entire test suite with Lodash instead of Underscore by passing the `--lodash` option to `karma start`. Still runs with Underscore by default. (Tip for Yarn users: you can just do `yarn test --lodash`). - Feature detection of `_.any` is used to determine whether the `_` factory argument is Underscore or Lodash. In the latter case, some aliases are created on `_` in order to keep the code changes to a minimum. - Everywhere a third `context` argument was passed to functions like `_.each` and `_.map`, `_.bind` is now used instead. - Travis build runs both the Underscore variant and the Lodash variant of the test suite (and both pass). - Travis config updated to use Node version 8 instead of 4, in order to resolve compatibility issues with the force-updated `npm` command line program. - `index.html` updated to reflect that Lodash works, too. Note on the `CONTRIBUTING.md` and the `.editorconfig`: these files tell me that JavaScript files should be two-space indented, but the JavaScript files I edited were already tab-indented. I decided to go with the existing practice.
- Loading branch information