· Homepage · Report Bug / Request Feature ·
npm install @compactjs/assign<scriptsrc="https://unpkg.com/@compactjs/assign/dist/index.umd.js"></script>import{assign}from'@compactjs/assign';consttarget={boolean: true,string: 'abc',object: {number: 0,any: 0},};constsource=['34','abc',[14,2]];assign(target,source);console.log(target);// prints:// {// boolean: '34',// string: 'abc',// object: { number: 14, any: 2 },// }Check out the index.test.js file for more examples.
npm run test👤 Timo Bechtel
- Website: https://timobechtel.com
- Twitter: @TimoBechtel
- GitHub: @TimoBechtel
Contributions, issues and feature requests are welcome!
- Check issues
- Fork the Project
- Create your Feature Branch (
git checkout -b feat/AmazingFeature) - Test your changes
npm run test - Commit your Changes (
git commit -m 'feat: add amazingFeature') - Push to the Branch (
git push origin feat/AmazingFeature) - Open a Pull Request
This project uses semantic-release for automated release versions. So commits in this project follow the Conventional Commits guidelines. I recommend using commitizen for automated commit messages.
Give a ⭐️ if this project helped you!
Distributed under the MIT License.
This README was generated with ❤️ by readme-md-generator