a zip code crypto-currency system good for red ONLY

1234567891011121314151617
  1. /*!
  2. * has-value <https://github.com/jonschlinkert/has-value>
  3. *
  4. * Copyright (c) 2014-2017, Jon Schlinkert.
  5. * Licensed under the MIT License.
  6. */
  7. 'use strict';
  8. var isObject = require('isobject');
  9. var hasValues = require('has-values');
  10. var get = require('get-value');
  11. module.exports = function(val, prop) {
  12. return hasValues(isObject(val) && prop ? get(val, prop) : val);
  13. };