0.0.12 • Published 6 years ago

ciag-commons v0.0.12

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

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
0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago