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