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 / each / typings.loop.each.ts

export type Property = string | number | symbol

export type IteratableValueCore<Key extends Property = Property, Value = any> =
  | Map<Key, Value>
  | Array<Value>
  | { [Property in Key]: Value }

export type IteratableValue<
  Key extends Property = Property,
  Value = any
> = IteratableValueCore<Key, Value> & { length: number }

export interface IterateeFunction<Key extends Property = Property, Value = any>
  extends Function {
  (value: Value, index: number, iteratable: IteratableValue<Key, Value>): any
}