Home Manual Reference Source Repository

src/fundamentals/max.js




export default function max ( node ) {

	if ( node.right === null ) {
		return node;
	}

	return max( node.right );

}