snce-frontend-utils
v2.9.0
Published
Common JS functions
Downloads
35
Readme
Snce Frontend Utils
JS common functions to be used in frontend repo.
Installation
Using npm:
$ npm i snce-frontend-utils
Usage
const snceUtils = require('snce-frontend-utils');
Functions available
- GTM DataLayer functions (see DATALAYER.md)
- Closest returns closest related DOM element with CSS class given.
let itemFounded = _closest(DOMitem, 'classname');
Publish new version
For publishing new version see DEPLOY.md.