UNPKG

lookml-parser

Version:
14 lines 304 B
module.exports = function decodeProperty(prop){ if(typeof prop !== 'string'){ if(prop === parseInt(prop)){ return prop } else { throw "Property ("+prop+") must be a string or integer (at lib/common/decode-property.js)" } } if(prop[0]==='$'){ return prop.slice(1) } return prop }