hasDollarKeys.js 242 B

12345678910111213141516
  1. 'use strict';
  2. /*!
  3. * ignore
  4. */
  5. module.exports = function(obj) {
  6. var keys = Object.keys(obj);
  7. var len = keys.length;
  8. for (var i = 0; i < len; ++i) {
  9. if (keys[i].charAt(0) === '$') {
  10. return true;
  11. }
  12. }
  13. return false;
  14. };