kld-class-utils

A collection of JS "class" utilities

npm install kld-class-utils
20 downloads in the last month

kld-class-utils

A collection of JS "class" utilities I've collected and/or written over time. Nothing amazing here, but they work for me.

Installation

npm install kld-class-utils

Utilities

  • isObject(item)
  • isFunction(item)
  • isString(item)
  • isMethod(item, methodName)
  • conformsToInteface(item, methodNames)
  • mergeProperties(source, target)
  • inherit(proto)
  • defineSubclass(superclass, constructor, methods, statics)
npm loves you