Check If Byte Array Is Empty In Javascript