Scribd Inc. Interview Question

Write a JavaScript function that executes once and stores the return value. On subsequent invocations it just returns the stored value. i.e. Underscore's _.once()