-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array.uniq throws error on vite #5
Comments
I think the name of function is array.unique with "ue", but if you want
manually you can use js Set like for instance Array.from(new Set([].map()))
Pada tanggal Sen, 11 Apr 2022 06.02, utitofon ***@***.***>
menulis:
… I am using nuxt 3 and I want to implement a filter method by comparing
dates in my array of objects to a future date then returning an array
satisfying the condition like below
[image: Screenshot_6]
<https://user-images.githubusercontent.com/69417647/162643602-badab373-7471-4d2d-b229-1637318a4861.png>
I thought of using array.uniq but vite throws an error that it is not found
[image: Screenshot_7]
<https://user-images.githubusercontent.com/69417647/162643623-7d82566a-7c92-4630-98fe-472d4ce8423c.png>
Can this be an internal issue?
—
Reply to this email directly, view it on GitHub
<#5>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADMYO4NR4FOEA232WWO4IT3VENMXRANCNFSM5TBPWT2Q>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
if you want to use new version, you need to import individual library like
import { uniq, take } from 'alga-js/array'
usage:
uniq(arrOfObjs/arrOfArrs/arrOfPrimitives,
objPropOptional/indexNumberInCaseArrOfArrs) to filter only unique values
take(arrOfObjs/arrOfArrsOnly, Prop/Index/CallBackFunc) to take the values
from property of object or index of array
Pada tanggal Sen, 11 Apr 2022 06.02, utitofon ***@***.***>
menulis:
… I am using nuxt 3 and I want to implement a filter method by comparing
dates in my array of objects to a future date then returning an array
satisfying the condition like below
[image: Screenshot_6]
<https://user-images.githubusercontent.com/69417647/162643602-badab373-7471-4d2d-b229-1637318a4861.png>
I thought of using array.uniq but vite throws an error that it is not found
[image: Screenshot_7]
<https://user-images.githubusercontent.com/69417647/162643623-7d82566a-7c92-4630-98fe-472d4ce8423c.png>
Can this be an internal issue?
—
Reply to this email directly, view it on GitHub
<#5>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADMYO4NR4FOEA232WWO4IT3VENMXRANCNFSM5TBPWT2Q>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
for more information about uniq and take, please take a look at test
folder, inside array folder, there have 2 files which is uniqArray.test.ts
and takeArray.test.ts
Pada tanggal Sen, 11 Apr 2022 06.02, utitofon ***@***.***>
menulis:
… I am using nuxt 3 and I want to implement a filter method by comparing
dates in my array of objects to a future date then returning an array
satisfying the condition like below
[image: Screenshot_6]
<https://user-images.githubusercontent.com/69417647/162643602-badab373-7471-4d2d-b229-1637318a4861.png>
I thought of using array.uniq but vite throws an error that it is not found
[image: Screenshot_7]
<https://user-images.githubusercontent.com/69417647/162643623-7d82566a-7c92-4630-98fe-472d4ce8423c.png>
Can this be an internal issue?
—
Reply to this email directly, view it on GitHub
<#5>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADMYO4NR4FOEA232WWO4IT3VENMXRANCNFSM5TBPWT2Q>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thank you. I will try this out and get back to you |
Great, thanks!
Pada tanggal Sel, 12 Apr 2022 04.21, utitofon ***@***.***>
menulis:
… Thank you. I will try this out and get back to you
—
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADMYO4LLHKLIF2YTTM6USRLVESJWBANCNFSM5TBPWT2Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using nuxt 3 and I want to implement a filter method by comparing dates in my array of objects to a future date then returning an array satisfying the condition like below
I thought of using array.uniq but vite throws an error that it is not found
Can this be an internal issue?
The text was updated successfully, but these errors were encountered: