Skip to content

Instantly share code, notes, and snippets.

@toddzebert
Created March 27, 2017 03:57
Show Gist options
  • Save toddzebert/43c308b0e0f559b47ac487dcc8c06924 to your computer and use it in GitHub Desktop.
Save toddzebert/43c308b0e0f559b47ac487dcc8c06924 to your computer and use it in GitHub Desktop.
getProfile code for use with simAsync.js
// requires https://gist.github.com/toddzebert/996e297c1c081d19378eaf5f29dc75bb
var getProfile = function(data) {
// create a closure
const prof = function () {
data.profile = "Profile"; return data;
};
return simAsync(prof);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment