Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hasDollarKeys.js 246B

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