Some utils things
npm install ciag-commons$ npm install ciag-commons --save
``javascript
import { ObjectUtils } from 'ciag-commons';
function getCurrentDate(datetime) {
if(ObjectUtils.isCallable(datetime)) {
return datetime();
}
return moment(datetime);
}
``
| Methods |
| --------------- |
| recursiveAssign |
| prepareName |
| getattr |
| setattr |
| firstNonNull |
| firstNonEmpty |
| isCallable |
| copy |
| strToBoolOrStr |
| zipToObject |
| isString |
| isEmpty |
| format |