UNPKG

react-pivot

Version:

React-Pivot is a data-grid component with pivot-table-like functionality for data display, filtering, and exploration.

22 lines (16 loc) 662 B
var faker = require('../index'); var phone = { phoneNumber: function (format) { format = format || faker.phone.phoneFormats(); return faker.helpers.replaceSymbolWithNumber(format); }, // FIXME: this is strange passing in an array index. phoneNumberFormat: function (phoneFormatsArrayIndex) { phoneFormatsArrayIndex = phoneFormatsArrayIndex || 0; return faker.helpers.replaceSymbolWithNumber(faker.definitions.phone_number.formats[phoneFormatsArrayIndex]); }, phoneFormats: function () { return faker.random.array_element(faker.definitions.phone_number.formats); } }; module.exports = phone;