What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-03 01:30:14
how to find id in array javascript
//The find() method returns the value of the first element in the provided array that satisfies the provided testing function. const array1 = [5, 12, 8, 130, 44]; const found = array1.find(element => element > 10); console.log(found); // expected ... Add solution -
C++ 2021-09-30 01:20:02
print a string after a character in c++
/* This is a simple algorithm implemented using arrays! This can also be used when you're asked to find a replacement to the string.find() method */ #include <iostream> #include <vector> using namespace std; int main() { string str; ... Add solution