indifferentghost
Follow
Highlights
- Pro
Pinned Loading
-
A pretty awkward linked list
A pretty awkward linked list 1const Node = (function () {
2const _value = new WeakMap();
34function _Node(value) {
5_value.set(this, value);
-
Fizzbuzz Without If JavaScript
Fizzbuzz Without If JavaScript 1function replacer(arr, num, replace) {
2for (let i = num - 1; i < arr.length; i += num) {
3arr[i] = replace;
4}
5}
-
Implementation of Abstract Equality ...
Implementation of Abstract Equality Comparison 1function getMethod(value, property) {
2if (typeof property === 'string' || typeof property === 'symbol') {
3const func = value[property]
4if (func === null || func === undefined) {
5return undefined;
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.