Notwithstanding any other provisions of law to the contrary, in any action concerning children undertaken by a State department, agency, commission, authority, court of law, or State or local legislative body, the best interests of the child shall be a primary consideration.
N.J.S. § 9:2-4a