Subj : Re: Add and object to an array
To   : Nightfox
From : Mortifis
Date : Thu Jul 18 2019 08:14 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: ''
> });


Thank you, I appreciate it.



My teachers always said "You can't make a living looking out a window!", they
were wrong,  I drive truck :-P

---
� Synchronet � AlleyCat! BBS - http://alleycat.synchro.net:81