Skip to content

emoji-gen/clone-into

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clone-into  npm test License

🔥 Wrapper function for Firefox's cloneInto

Getting started

$ npm install --save @emoji-gen/clone-into

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

$ npm run build

Test

$ npm test

Publish

Update the version in package.json to the version you want to release.

Then, manually trigger the publish.yml workflow via the workflow_dispatch event to create a release.

License

MIT © Emoji Generator

About

🔥 Wrapper function for Firefox's cloneInto

Topics

Resources

License

Stars

Watchers

Forks

Contributors