UNPKG

verify-it

Version:

Randomised test property/data generation for NodeJS

12 lines (9 loc) 224 B
'use strict' module.exports = (parent, key) => { if (parent && parent[key] && typeof parent[key] === 'function') { /** @type {typeof parent[key]} */ const value = parent[key] return value } return null }