Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
chain-able-deps / dist / typings / util / keysIn.d.ts
Size: Mime:
import { AnyArrayOrObj } from '../_typings';
/**
 * @name keysIn
 * @version 1.0.0 uncommented, used preAllocate
 * @version 0.0.1 just comment
 * @since 5.0.0
 *
 * @param  {Object|Array} obj object to call `for in` on
 * @param  {boolean} [guard=false] only accept `hasOwnProperty`
 * @return {Array} keys from obj
 *
 * {@link https://github.com/ramda/ramda/blob/master/src/keysIn.js ramda-keys-in}
 * @see {@link ramda-keys-in}
 * @see array/preAllocate
 * @see util/hasOwnProperty
 *
 * @tests keys
 *
 * @example
 *
 *    keysIn([1, 2])           //=> [0, 1]
 *    keysIn({one: 1, two: 2}) //=> ['one', 'two']
 *
 */
export default function keysIn<Obj = AnyArrayOrObj>(obj: Obj, guard?: boolean): any[];