A tiny (~500B) JavaScript library that allows you to set default values for nested objects. "default-composer" is a JavaScript library that allows you to set default values for nested objects. The library replaces empty strings/arrays/objects, null, or undefined values in an existing object with the defined default values, which helps simplify programming logic and reduce the amount of code needed to set default values. To use "default-composer", simply import the library and call the defaultComposer() function with the default values object and the original object that you want to set default values for.
Features
- Examples available
- setConfig is a function that allows you to set configuration options for defaultComposer
- Licensed under the MIT license
- The library replaces empty strings/arrays/objects
- Simplify programming logic
- Reduce the amount of code needed to set default values
License
MIT LicenseFollow Default composer
Other Useful Business Software
AestheticsPro Medical Spa Software
AestheticsPro is the most complete Aesthetics Software on the market today. HIPAA Cloud Compliant with electronic charting, integrated POS, targeted marketing and results driven reporting; AestheticsPro delivers the tools you need to manage your medical spa business. It is our mission To Provide an All-in-One Cutting Edge Software to the Aesthetics Industry.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Default composer!