Genesis 38:8yavam
Then Judah said to Onan, "Go in to your brother's wife, and perform your duty as a brother-in-law to her, and raise up offspring for your brother."
NASB says “and perform”, “your duty”, “as a brother-in-law” here
Deuteronomy 25:5yavam
"When brothers live together and one of them dies and has no son, the wife of the deceased shall not be {married} outside {the family} to a strange man. Her husband's brother shall go in to her and take her to himself as wife and perform the duty of a husband's brother to her.
NASB says “and perform”, “the duty”, “of a husband's”, “brother” here
Deuteronomy 25:7yavam
"But if the man does not desire to take his brother's wife, then his brother's wife shall go up to the gate to the elders and say, 'My husband's brother refuses to establish a name for his brother in Israel; he is not willing to perform the duty of a husband's brother to me.'
NASB says “to perform”, “the duty”, “of a husband's”, “brother” here