Skip to content

Instantly share code, notes, and snippets.

@brendandahl
Created July 1, 2024 20:53
Show Gist options
  • Save brendandahl/ed127a9d93fbb69623463ae6c6382184 to your computer and use it in GitHub Desktop.
Save brendandahl/ed127a9d93fbb69623463ae6c6382184 to your computer and use it in GitHub Desktop.
var library = {};
if (EM.ASYNCIFY) {
library['sleep'] = function () { ... };
} else {
library['sleep'] = function () { ... };
}
addToLibrary(library);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment