🛠Super handy JavaScript utilities for frontend development.
Note: This is a work in progress and as such is not well documented or ready-to-use.
$ npm install @mrolaolu/helpers --save
Let's say you want to use the getFormFields
helper...
import { getFormFields } from '@mrolaolu/helpers'
or ...
import getFormFields from '@mrolaolu/helpers/dist/esm/getFormFields'
const formFields = getFormFields(
document.getElementById('form') as HTMLFormElement
)
// => { email: hello@test.io, password: Unicorns!, ... }
MIT © olaolu.dev  · GitHub @whizkydee  · Twitter @mrolaolu