Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

skava / chain-able-lego   js

Repository URL to install this package:

Version: 6.0.4 

/ src / from-module-deps / upgradeSpecification.ts

import { isPrimitive } from 'exotic'
import { forOwn, equals } from 'chain-able-deps'

const upgradeSpecification = specification => {
  // turn primitive values into eq functions
  forOwn(specification, (value, key) => {
    if (isPrimitive(value)) {
      specification[key] = equals(value)
    }
  })
}

export { upgradeSpecification }
export default upgradeSpecification