Replace First Item In Array Javascript Push Function In Python