updated const statement assignment function for destructured assign support