// @flow const isIntGreaterThan = (number, other) => Number.isInteger(number) && number >= other; /** * Returns true if the given string is an Array key or false otherwise. */ const isKey = (string: string): boolean => isIntGreaterThan(Number(string), 0); export default isKey;