Skip to content

Instantly share code, notes, and snippets.

@shnigi
shnigi / shnigidash.js
Last active March 10, 2022 08:14
Lodash vanilla utility - shnigidash
// UTILITY
const cars = [
{ type: 'mazda', driven: 14020, active: true },
{ type: 'volvo', driven: 404324, active: false },
{ type: 'nissan', driven: 135223, active: true }
];
// MAP FUNCTIONS
const shnigimap = (arr, mapfunc) => {
const resultArray = [];
@shnigi
shnigi / script.js
Last active October 26, 2021 10:30
script test
function init() {
return console.log('jee')
}
@shnigi
shnigi / alert.js
Last active February 10, 2021 10:01
alert('moi!')