Skip to content

Instantly share code, notes, and snippets.

@judearasu
judearasu / dabblet.css
Last active August 29, 2015 14:09
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@judearasu
judearasu / findIntersection.js
Created March 8, 2020 01:33
Find Intersection
function findIntersection(strArr) {
let result = [];
if (Array.isArray(strArr)) {
let arg1 = strArr[0].split(",").map(elem => elem.trim());
let arg2 = strArr[1].split(",").map(elem => elem.trim());
arg1.filter(a => {
if (arg2.includes(a)) {
result.push(a.trim());
}
});
@judearasu
judearasu / questionMarks.js
Created April 6, 2020 02:23
Questions Marks
function QuestionsMarks(str) {
let numbers = [];
let inputStrArr = str;
let numbersWithIndex = [];
let result = false;
for (let i = 0; i < inputStrArr.length; i++) {
if (parseInt(inputStrArr[i], 10)) {
numbers.push(inputStrArr[i]);
numbersWithIndex.push({