Skip to content

Instantly share code, notes, and snippets.

View neetigyachahar's full-sized avatar
🕸️
Spider-Man onto web!

Neetigya Chahar neetigyachahar

🕸️
Spider-Man onto web!
View GitHub Profile
// Calculating intersection between two unsorted
// arrays with proper code writting guidelines
// Example
// Input:
// 2 1 10 11 12 13 14 4 5 67 7
// 23 71 10 11 12 13 14 34 57 267 79
// Output:
// Intersected Array: [ 10, 11, 12, 13, 14 ]
@neetigyachahar
neetigyachahar / cureEmoji.js
Last active May 30, 2020 10:55
React Higher Order component to implement accessibility of emojis in text.
import React from 'react';
import emojiTree from 'emoji-tree';
const cureEmoji = props => {
let textChuck = '';
let formattedText = [];