Skip to content

Instantly share code, notes, and snippets.

@fitsum
Last active April 26, 2024 05:20
Show Gist options
  • Save fitsum/5a40c302b173f9283590717f4e31b061 to your computer and use it in GitHub Desktop.
Save fitsum/5a40c302b173f9283590717f4e31b061 to your computer and use it in GitHub Desktop.
no more eval() I guess ...
(() => {return Function(`"use strict";return (${__f__})`)();}).call(null)()
// would normally do `eval(__f__)` where __f__ might be a stringified function
// name in an array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment