Frage

I'm building a native NodeJS module for NodeJs and I'm wondering how can I remove the last element from array?

 Local<Array> nodes = Array::New();

I've tried, nodes->Remove(), nodes->Splice(), nodes->Pop(), but none of them works.

Thanks.

And yes, I googled it and couldn't find a proper answer.

War es hilfreich?

Lösung

After few hours research, I found this source code and figured out that

nodes->Delete(ID);

will do the job.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top