refact(ee): emit a data event instead
fix(npm): remove stray require
chore(array): tidy things up