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-deps   js

Repository URL to install this package:

Version: 6.0.4 

/ src / loop / flattenForIn.ts

import forInUnguarded from './each/forInUnguarded'

/**
 * @desc copies forInUnguarded
 * @since 5.0.0-beta.6
 * @name flattenForIn
 * @alias flattenProto
 * @alias flattenPrototype
 * @param x copy proto to self
 */
export default <Type extends {}>(x: Type) =>
  forInUnguarded(x, (value, key) => {
    x[key] = value
  })