code: function is(obj, type) {
        if (!type) {
          return obj !== undefined;
        }
  
        if (type == 'array' && Arr.isArray(obj)) {
          return true;
        }
  
        return typeof obj == type;
      }
docs: Checks if a object is of a specific type for example an array.
  
  @method is
  @param {Object} obj Object to check type of.
  @param {string} type Optional type to check for.
  @return {Boolean} true/false if the object is of the specified type.