hasDollarKeys.js 287 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 'use strict'; /*! * ignore */ module.exports = function(obj) { if (obj == null) { return false; } const keys = Object.keys(obj); const len = keys.length; for (let i = 0; i < len; ++i) { if (keys[i].startsWith('$')) { return true; } } return false; };