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
})