ciag-commons
TypeScript icon, indicating that this package has built-in type declarations

0.0.12 • Public • Published

Common library for Typescript|ES6 projects

Install

$ npm install ciag-commons --save

Object Utils

Usage

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

Readme

Keywords

none

Package Sidebar

Install

npm i ciag-commons

Weekly Downloads

4

Version

0.0.12

License

ISC

Unpacked Size

28 kB

Total Files

12

Last publish

Collaborators

  • rafael.lima