Instantly share code, notes, and snippets.

View Object.getMaxDepth.js
// file "Object.getMaxDepth.js"
const Object = global.Object;
const object_prototype_toString = Object.prototype.toString;
const object_keys = Object.keys;
const math_max = global.Math.max;
const isArray = global.Array.isArray;
View Function.memoize.js
(function (global) {
'use strict';
var
Array = global.Array,
Object = global.Object,
RegExp = global.RegExp,
Function = global.Function,
View Function.clocked.js
(function (global, Math, Function) {
'use strict';
var
DEFAULT_INTERVALL = 200,
TYPEOF_FUNCTION_TYPE = 'function', // assigning the result of (typeof Function) will save two byte if minified.
isFunction = function (type) {
View Array.removeFirstMatch.removeLastMatch.removeEveryMatch.js
/**
* [Array.removeFirstMatch.removeLastMatch.removeEveryMatch.js]
*
* implementation of 3 filter-method based, prototypal `Array` methods - `Array#removeFirstMatch`, `Array#removeLastMatch`, `Array#removeEveryMatch`.
*/
(function (ReferenceError, TypeError, Object, Array) {
"use strict";
var
View esx-trait_example-code_proposal.js.scala
trait customTrait {
use { Trait_A, Trait_B, Trait_C }
apply all
apply all without { methodName_z, methodName_y }
apply { Trait_A }
View Object.compare.js
(function (Object) {
var
expose_internal_value = Object.prototype.valueOf,
NULL_VALUE = null,
View types.js
(function (Function, Array) {
var
function_prototype = Function.prototype,
isFunction = (function (TYPEOF_FUNCTION) {
return function (type) {
return ((typeof type == TYPEOF_FUNCTION)
&& (typeof type.call == TYPEOF_FUNCTION)
View Range.js
composable("composites.Range", function (require, global) {
"use strict";
require("environment_extended_introspective_core");
View Object.with.without.js
(function (Object, Array) {
"use strict";
var
object_prototype = Object.prototype,
isObject = function is_object (type) {
View Array.reject.js
composable("composites.Array_reject", function (require, global) {
"use strict";
require("environment_extended_introspective_core");