Detect when an element is ready in the DOM
Uses ES2015 syntax.
$ npm install --save element-ready
const elementReady = require('element-ready');
elementReady('#unicorn').then(element => {
console.log(element.id);
//=> 'unicorn'
});
Returns a promise for a matching element.
Type: string
MIT © Sindre Sorhus