New York Laws
Title 1 - Presidential and Vice Presidential Electors
12-100 - Electors of President and Vice President.

ยง 12-100. Electors of president and vice president. At the general
election in November preceding the time fixed by law of the United
States for the choice of president and vice president of the United
States, as many electors of president and vice president of the United
States shall be elected, as this state shall be entitled to. Each vote
cast for the candidates of any party or independent body for president
and vice president of the United States and each vote cast for any
write-in candidates for such offices shall be deemed to be cast for the
candidates for elector of such party or independent body or the
candidates for elector named in the certificate of candidacy of such
write-in candidates.