UNPKG

fictional

Version:

Generate fake data deterministically from a given input

6 lines (4 loc) 145 B
var hash = require('../hash') module.exports = function resolve(id, v, options) { return typeof v === 'function' ? v(hash(id), options) : v }