Skip to content

Instantly share code, notes, and snippets.

@a6kme
Last active April 24, 2019 05:48
Show Gist options
  • Save a6kme/49b70c2ae81c62e3ea3efd661bbe7de2 to your computer and use it in GitHub Desktop.
Save a6kme/49b70c2ae81c62e3ea3efd661bbe7de2 to your computer and use it in GitHub Desktop.
Library code in src/
// src/arithmetic/add.js
import add from 'lodash/add';
export default (augend, addend) => add(augend, addend);
// src/index.js
export { default as max } from './range/max';
export { default as add } from './arithmetic/add';
// src/range/max.js
import { maxBy } from 'lodash/maxBy';
export default array => max(array);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment