What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-22 00:30:31
filter array with unique objects javascript
const array = [ { "name": "Joe", "age": 17 }, { "name": "Bob", "age": 17 }, { "name": "Carl", "age": 35 } ] const key = 'age'; const arrayUniqueByK... Add solution -
C++ 2021-11-21 05:47:22
how to get the largest number in a c++ array
#include <iostream> using namespace std; int main(){ //n is the number of elements in the array int n, largest; int num[50]; cout<<"Enter number of elements you want to enter: "; cin>>n; /* Loop runs from ... Add solution -
Other 2021-11-19 13:00:07
implement crc using c language
#include <stdio.h> #include <conio.h> #include <string.h> void main() { int i,j,keylen,msglen; char input[100], key[30],temp[30],quot[100],rem[30],key1[30]; clrscr(); printf("Enter Data: "); gets(input); printf("Enter Key:... Add solution -
Javascript 2021-11-19 03:07:17
javascript splice without changing array
I assume you mean that you want to create a new list without a given element, instead of changing the original list. One way is to use a list comprehension: m = ['a', 'b', 'c'] n = [x for x in m if x != 'a'] n is now a copy of m, but without the 'a' ele... Add solution
Best helpers
Ranking is empty