@vsokolov/utils - v0.32.0
    Preparing search index...

    Function tap

    • Pass the value through the callback, and return the value

      Type Parameters

      • T

      Parameters

      • value: T
      • callback: (value: T) => void

      Returns T

      function createUser(name: string): User {
      return tap(new User, user => {
      user.name = name
      })
      }