DOT Utils Collection
npm install @zohodesk/utilsIn this package, We provide lots of util fuctions for web devlopment
- getCurrentTime, objectCRUD, arrayCRUD, deepEqual, ArrayManager, ObjectManager, eventListenerUtils util added.
- renderNodeUtils
- renderNode function added to render content that can be either a function or a React element.
- isRenderable function added to check if the content is renderable (either a function or a valid React element).
- StringUtils
- String Utils Methods added
- mergeStyle issue fix
- mergeStyle functionality updated. Composed classes will also update if it is inside that file.
``js
// Before
const style = mergeStyle(
{ a: '1', b: '1 2' },
{ a: 'a' }
);
// style = { a: '1 a', b: '1 2' }
// After
const style = mergeStyle(
{ a: '1', b: '1 2' },
{ a: 'a' }
);
// style = { a: '1 a', b: '1 a 2' }
`compileClassNames` code optimized. Will not support other than object as argument.
-