UNPKG

json-schema-faker

Version:
12 lines (8 loc) 353 B
import number from './number'; // The `integer` type is just a wrapper for the `number` type. The `number` type // returns floating point numbers, and `integer` type truncates the fraction // part, leaving the result as an integer. function integerType(value) { return number(Object.assign({ multipleOf: 1 }, value)); } export default integerType;