Pass the value through the callback, and return the value
The value to pass through
Callback to execute with the value
The original value unchanged
function createUser(name: string): User { return tap(new User, user => { user.name = name })} Copy
function createUser(name: string): User { return tap(new User, user => { user.name = name })}
Pass the value through the callback, and return the value