Subj : Add and object to an array
To   : Mortifis
From : Nightfox
Date : Thu Jul 18 2019 03:01 pm

 Re: Add and object to an array
 By: Mortifis to All on Thu Jul 18 2019 05:04 pm

Mo> var user_list = []; // ??

Mo> ... do some stuff and add the values to an array
Mo> that can be accessed by the index [x] later on
Mo> is there a push.dup_user(user_list) type expression?

If I understand you, do you want to add/append to the user_list array?  You
should be able to do this:

user_list.push(dup_user);

You can also append literal objects:

user_list.push({
 number: '',
 alias: '',
 num: '',
 email: '',
 dup_alias: '',
 dup_num: '',
 dup_email: ''
});

Nightfox

---
� Synchronet � Digital Distortion: digitaldistortionbbs.com