Install toolkit via yarn
.
yarn add https://github.com/360player/js-toolkit.git --save
import omit from 'js-toolkit/omit';
// Omits properties from payload object
let payload = omit( formData, 'password_repeat' );
Code MUST be linted with ESLint, typechecked with Flow and tested with Jest.
You can run each section individually via yarn run lint
, yarn run flow
or yarn run test
. Or run them all in order via yarn run code-quality
- Every new feature, function or class MUST have specs, be fully documented and flowtyped.
- Every new feature, function or class CANNOT have any polyfills and MUST be ES7 compliant.