Skip to content

emoji-gen/clone-into

Repository files navigation

clone-into  npm build License

🔥 Wrapper function for Firefox's cloneInto

Getting started

$ npm install --save @emoji-gen/clone-into # for npm users
$ yarn add @emoji-gen/clone-into           # for yarn users

If it execute on Google Chrome or other browsers, this function return an argument obj as it is.

import { cloneInto } from '@emoji-gen/clone-into'

const obj = { data: [ 1, 2, 3 ] }
const clonedObj = cloneInto(obj, document.defaultView)

Features

  • Supports TypeScript
  • Supports both CommonJS and ESModules

Development

Build

$ yarn run build

Test

$ yarn test

License

MIT © Emoji Generator