Fetching details from the dictionary...
to match; to equal
「如く」 has another reading with different meanings.
like; as