text: // https://stackoverflow.com/a/31055217/8555937
  
  module.exports = function (toCheck){
      var props = [];
      var obj = toCheck;
      do {
          props = props.concat(Object.getOwnPropertyNames(obj));
      } while (obj = Object.getPrototypeOf(obj));
  
      return props.sort().filter(function(e, i, arr) { 
         if (e!=arr[i+1] && typeof toCheck[e] == 'function') return true;
      });
  }