Skip to content

Instantly share code, notes, and snippets.

View bladerunner2020's full-sized avatar

Alexander Pivovarov bladerunner2020

View GitHub Profile
@bladerunner2020
bladerunner2020 / .eslint.yml
Created November 24, 2021 13:25
Airbnb-bases eslint rules (as a separate file, not complete)
env:
commonjs: false
es6: false
node: true
jest: true
globals:
$: readonly
createSharedVariable: readonly
Atomics: readonly
SharedArrayBuffer: readonly
@bladerunner2020
bladerunner2020 / iridium_array_indexof.js
Created March 13, 2019 13:00
Implementation of Array.indexOf for Iridium Mobile
if (!Array.prototype.indexOf) {
Array.prototype.indexOf = function(searchElement, fromIndex) {
var k;
if (this == null) {
throw new TypeError('"this" is null or not defined');
}
var O = Object(this);