0.2.0 • Published 2 years ago
clone-into v0.2.0
clone-into
:fire: Wrapper function for Firefox's cloneInto
Getting started
$ yarn add clone-into
or
$ npm install --save clone-into
If it execute on Google Chrome or other browsers, this function return an argument obj as it is.
const cloneInto = require('clone-into')
const obj = { data: [ 1, 2, 3 ] }
const clonedObj = cloneInto(obj, document.defaultView)
Features
- TypeScript built-in supports
See also
License
MIT © Emoji Generator