parse.js 282 B

1234567891011
  1. module.exports = (props) => {
  2. try {
  3. if(props.slice && 'SEA{' === props.slice(0,4)){
  4. props = props.slice(3);
  5. }
  6. return props.slice ? JSON.parse(props) : props
  7. } catch (e) {} //eslint-disable-line no-empty
  8. return props
  9. }