1.0.3 • Published 1 year ago

stringify-has-fn v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

stringify-has-fn

JSON.stringify has function

const stringifyHasFn = require("stringify-has-fn")

var resStr = stringifyHasFn({
  array: [
    {
      async a (param1) {
        console.log(await param1)
      },
      b: function (param1) {
        return param1
      },
      c: async (param1, param2) => {
        console.log(param1, param2)
      }
    }
  ]
})

eval(`console.log(${resStr})`)