code stringlengths 24 2.07M | docstring stringlengths 25 85.3k | func_name stringlengths 1 92 | language stringclasses 1
value | repo stringlengths 5 64 | path stringlengths 4 172 | url stringlengths 44 218 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
function readAnchorProperty(state) {
var _position,
ch;
ch = state.input.charCodeAt(state.position);
if (ch !== 0x26/* & */) return false;
if (state.anchor !== null) {
throwError(state, 'duplication of an anchor property');
}
ch = state.input.charCodeAt(++state.position);
_position = state.p... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | readAnchorProperty | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function readAlias(state) {
var _position, alias,
ch;
ch = state.input.charCodeAt(state.position);
if (ch !== 0x2A/* * */) return false;
ch = state.input.charCodeAt(++state.position);
_position = state.position;
while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
ch = state.input... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | readAlias | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
var allowBlockStyles,
allowBlockScalars,
allowBlockCollections,
indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this<parent
atNewLine = false,
hasContent = false,
typeIndex,
typeQuan... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | composeNode | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function readDocument(state) {
var documentStart = state.position,
_position,
directiveName,
directiveArgs,
hasDirectives = false,
ch;
state.version = null;
state.checkLineBreaks = state.legacy;
state.tagMap = {};
state.anchorMap = {};
while ((ch = state.input.charCodeAt(stat... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | readDocument | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function loadDocuments(input, options) {
input = String(input);
options = options || {};
if (input.length !== 0) {
// Add tailing `\n` if not exists
if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ &&
input.charCodeAt(input.length - 1) !== 0x0D/* CR */) {
input += '\n';
}
/... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | loadDocuments | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function loadAll(input, iterator, options) {
var documents = loadDocuments(input, options), index, length;
for (index = 0, length = documents.length; index < length; index += 1) {
iterator(documents[index]);
}
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | loadAll | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function load(input, options) {
var documents = loadDocuments(input, options);
if (documents.length === 0) {
/*eslint-disable no-undefined*/
return undefined;
} else if (documents.length === 1) {
return documents[0];
}
throw new YAMLException('expected a single document in the stream, but found m... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | load | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function safeLoadAll(input, output, options) {
loadAll(input, output, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | safeLoadAll | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function safeLoad(input, options) {
return load(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | safeLoad | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function Mark(name, buffer, position, line, column) {
this.name = name;
this.buffer = buffer;
this.position = position;
this.line = line;
this.column = column;
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | Mark | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function compileList(schema, name, result) {
var exclude = [];
schema.include.forEach(function (includedSchema) {
result = compileList(includedSchema, name, result);
});
schema[name].forEach(function (currentType) {
result.forEach(function (previousType, previousIndex) {
if (previousType.tag ===... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | compileList | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function compileMap(/* lists... */) {
var result = {}, index, length;
function collectType(type) {
result[type.tag] = type;
}
for (index = 0, length = arguments.length; index < length; index += 1) {
arguments[index].forEach(collectType);
}
return result;
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | compileMap | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function collectType(type) {
result[type.tag] = type;
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | collectType | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function Schema(definition) {
this.include = definition.include || [];
this.implicit = definition.implicit || [];
this.explicit = definition.explicit || [];
this.implicit.forEach(function (type) {
if (type.loadKind && type.loadKind !== 'scalar') {
throw new YAMLException('There is a non-scalar type... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | Schema | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function compileStyleAliases(map) {
var result = {};
if (map !== null) {
Object.keys(map).forEach(function (style) {
map[style].forEach(function (alias) {
result[String(alias)] = style;
});
});
}
return result;
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | compileStyleAliases | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function Type(tag, options) {
options = options || {};
Object.keys(options).forEach(function (name) {
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
}
});
// TODO: Add tag format chec... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | Type | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function resolveYamlBinary(data) {
if (data === null) return false;
var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
// Convert one by one.
for (idx = 0; idx < max; idx++) {
code = map.indexOf(data.charAt(idx));
// Skip CR/LF
if (code > 64) continue;
// Fail on illegal charact... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | resolveYamlBinary | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function constructYamlBinary(data) {
var idx, tailbits,
input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan
max = input.length,
map = BASE64_MAP,
bits = 0,
result = [];
// Collect by 6*4 bits (3 bytes)
for (idx = 0; idx < max; idx++) {
if ((idx % 4 ... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | constructYamlBinary | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function representYamlBinary(object /*, style*/) {
var result = '', bits = 0, idx, tail,
max = object.length,
map = BASE64_MAP;
// Convert every three bytes to 4 ASCII characters.
for (idx = 0; idx < max; idx++) {
if ((idx % 3 === 0) && idx) {
result += map[(bits >> 18) & 0x3F];
resu... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | representYamlBinary | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function isBinary(object) {
return NodeBuffer && NodeBuffer.isBuffer(object);
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | isBinary | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function resolveYamlBoolean(data) {
if (data === null) return false;
var max = data.length;
return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) ||
(max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | resolveYamlBoolean | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function constructYamlBoolean(data) {
return data === 'true' ||
data === 'True' ||
data === 'TRUE';
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | constructYamlBoolean | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function isBoolean(object) {
return Object.prototype.toString.call(object) === '[object Boolean]';
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | isBoolean | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function resolveYamlFloat(data) {
if (data === null) return false;
if (!YAML_FLOAT_PATTERN.test(data)) return false;
return true;
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | resolveYamlFloat | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function constructYamlFloat(data) {
var value, sign, base, digits;
value = data.replace(/_/g, '').toLowerCase();
sign = value[0] === '-' ? -1 : 1;
digits = [];
if ('+-'.indexOf(value[0]) >= 0) {
value = value.slice(1);
}
if (value === '.inf') {
return (sign === 1) ? Number.POSITIVE_INFINITY ... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | constructYamlFloat | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function representYamlFloat(object, style) {
var res;
if (isNaN(object)) {
switch (style) {
case 'lowercase': return '.nan';
case 'uppercase': return '.NAN';
case 'camelcase': return '.NaN';
}
} else if (Number.POSITIVE_INFINITY === object) {
switch (style) {
case 'lowercase':... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | representYamlFloat | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function isFloat(object) {
return (Object.prototype.toString.call(object) === '[object Number]') &&
(object % 1 !== 0 || common.isNegativeZero(object));
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | isFloat | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function isHexCode(c) {
return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||
((0x41/* A */ <= c) && (c <= 0x46/* F */)) ||
((0x61/* a */ <= c) && (c <= 0x66/* f */));
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | isHexCode | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function isOctCode(c) {
return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */));
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | isOctCode | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function isDecCode(c) {
return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */));
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | isDecCode | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function resolveYamlInteger(data) {
if (data === null) return false;
var max = data.length,
index = 0,
hasDigits = false,
ch;
if (!max) return false;
ch = data[index];
// sign
if (ch === '-' || ch === '+') {
ch = data[++index];
}
if (ch === '0') {
// 0
if (index + 1 ==... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | resolveYamlInteger | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function constructYamlInteger(data) {
var value = data, sign = 1, ch, base, digits = [];
if (value.indexOf('_') !== -1) {
value = value.replace(/_/g, '');
}
ch = value[0];
if (ch === '-' || ch === '+') {
if (ch === '-') sign = -1;
value = value.slice(1);
ch = value[0];
}
if (value === ... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | constructYamlInteger | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function isInteger(object) {
return (Object.prototype.toString.call(object)) === '[object Number]' &&
(object % 1 === 0 && !common.isNegativeZero(object));
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | isInteger | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function resolveJavascriptFunction(data) {
if (data === null) return false;
try {
var source = '(' + data + ')',
ast = esprima.parse(source, { range: true });
if (ast.type !== 'Program' ||
ast.body.length !== 1 ||
as... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | resolveJavascriptFunction | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function constructJavascriptFunction(data) {
/*jslint evil:true*/
var source = '(' + data + ')',
ast = esprima.parse(source, { range: true }),
params = [],
body;
if (ast.type !== 'Program' ||
ast.body.length !== 1 ||
... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | constructJavascriptFunction | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function representJavascriptFunction(object /*, style*/) {
return object.toString();
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | representJavascriptFunction | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function isFunction(object) {
return Object.prototype.toString.call(object) === '[object Function]';
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | isFunction | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function resolveJavascriptRegExp(data) {
if (data === null) return false;
if (data.length === 0) return false;
var regexp = data,
tail = /\/([gim]*)$/.exec(data),
modifiers = '';
// if regexp starts with '/' it can have modifiers and must be properly closed
// `/foo/gim` - modifiers tail can b... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | resolveJavascriptRegExp | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function constructJavascriptRegExp(data) {
var regexp = data,
tail = /\/([gim]*)$/.exec(data),
modifiers = '';
// `/foo/gim` - tail can be maximum 4 chars
if (regexp[0] === '/') {
if (tail) modifiers = tail[1];
regexp = regexp.slice(1, regexp.length - modifiers.length - 1);
}
return ne... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | constructJavascriptRegExp | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function representJavascriptRegExp(object /*, style*/) {
var result = '/' + object.source + '/';
if (object.global) result += 'g';
if (object.multiline) result += 'm';
if (object.ignoreCase) result += 'i';
return result;
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | representJavascriptRegExp | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function isRegExp(object) {
return Object.prototype.toString.call(object) === '[object RegExp]';
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | isRegExp | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function resolveJavascriptUndefined() {
return true;
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | resolveJavascriptUndefined | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function constructJavascriptUndefined() {
/*eslint-disable no-undefined*/
return undefined;
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | constructJavascriptUndefined | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function representJavascriptUndefined() {
return '';
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | representJavascriptUndefined | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function isUndefined(object) {
return typeof object === 'undefined';
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | isUndefined | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function resolveYamlMerge(data) {
return data === '<<' || data === null;
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | resolveYamlMerge | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function resolveYamlNull(data) {
if (data === null) return true;
var max = data.length;
return (max === 1 && data === '~') ||
(max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | resolveYamlNull | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function constructYamlNull() {
return null;
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | constructYamlNull | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function isNull(object) {
return object === null;
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | isNull | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function resolveYamlOmap(data) {
if (data === null) return true;
var objectKeys = [], index, length, pair, pairKey, pairHasKey,
object = data;
for (index = 0, length = object.length; index < length; index += 1) {
pair = object[index];
pairHasKey = false;
if (_toString.call(pair) !== '[object ... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | resolveYamlOmap | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function constructYamlOmap(data) {
return data !== null ? data : [];
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | constructYamlOmap | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function resolveYamlPairs(data) {
if (data === null) return true;
var index, length, pair, keys, result,
object = data;
result = new Array(object.length);
for (index = 0, length = object.length; index < length; index += 1) {
pair = object[index];
if (_toString.call(pair) !== '[object Object]')... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | resolveYamlPairs | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function constructYamlPairs(data) {
if (data === null) return [];
var index, length, pair, keys, result,
object = data;
result = new Array(object.length);
for (index = 0, length = object.length; index < length; index += 1) {
pair = object[index];
keys = Object.keys(pair);
result[index] = ... | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | constructYamlPairs | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function resolveYamlSet(data) {
if (data === null) return true;
var key, object = data;
for (key in object) {
if (_hasOwnProperty.call(object, key)) {
if (object[key] !== null) return false;
}
}
return true;
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | resolveYamlSet | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function constructYamlSet(data) {
return data !== null ? data : {};
} | Whether or not the given `val`
is an array.
example:
isArray([]);
// > true
isArray(arguments);
// > false
isArray('');
// > false
@param {mixed} val
@return {bool} | constructYamlSet | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function resolveYamlTimestamp(data) {
if (data === null) return false;
if (YAML_DATE_REGEXP.exec(data) !== null) return true;
if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
return false;
} | Gets the last element of `array`.
@static
@memberOf _
@category Array
@param {Array} array The array to query.
@returns {*} Returns the last element of `array`.
@example
_.last([1, 2, 3]);
// => 3 | resolveYamlTimestamp | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function representYamlTimestamp(object /*, style*/) {
return object.toISOString();
} | Used to check objects for own properties. | representYamlTimestamp | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function indexOf(array, value, fromIndex) {
var length = array ? array.length : 0;
if (!length) {
return -1;
}
if (typeof fromIndex == 'number') {
fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : fromIndex;
} else if (fromIndex) {
var index = binaryIndex(array, value);
if (index ... | Used to check objects for own properties. | indexOf | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function last(array) {
var length = array ? array.length : 0;
return length ? array[length - 1] : undefined;
} | Used to check objects for own properties. | last | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function lodash(value) {
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
if (value instanceof LodashWrapper) {
return value;
}
if (hasOwnProperty.call(value, '__chain__') && hasOwnProperty.call(value, '__wrapped__')) {
return wrapperClone(value);
}
}
re... | Iterates over elements of `collection` invoking `iteratee` for each element.
The `iteratee` is bound to `thisArg` and invoked with three arguments:
(value, index|key, collection). Iteratee functions may exit iteration early
by explicitly returning `false`.
**Note:** As with other "Collections" methods, objects with a ... | lodash | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function includes(collection, target, fromIndex, guard) {
var length = collection ? getLength(collection) : 0;
if (!isLength(length)) {
collection = values(collection);
length = collection.length;
}
if (typeof fromIndex != 'number' || (guard && isIterateeCall(target, fromIndex, guard))) {
fromIndex ... | Gets the number of milliseconds that have elapsed since the Unix epoch
(1 January 1970 00:00:00 UTC).
@static
@memberOf _
@category Date
@example
_.defer(function(stamp) {
console.log(_.now() - stamp);
}, _.now());
// => logs the number of milliseconds it took for the deferred function to be invoked | includes | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function restParam(func, start) {
if (typeof func != 'function') {
throw new TypeError(FUNC_ERROR_TEXT);
}
start = nativeMax(start === undefined ? (func.length - 1) : (+start || 0), 0);
return function() {
var args = arguments,
index = -1,
length = nativeMax(args.length - start, 0),
... | A specialized version of `_.map` for arrays without support for callback
shorthands and `this` binding.
@private
@param {Array} array The array to iterate over.
@param {Function} iteratee The function invoked per iteration.
@returns {Array} Returns the new mapped array. | restParam | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function LazyWrapper(value) {
this.__wrapped__ = value;
this.__actions__ = [];
this.__dir__ = 1;
this.__filtered__ = false;
this.__iteratees__ = [];
this.__takeCount__ = POSITIVE_INFINITY;
this.__views__ = [];
} | The base implementation of `_.assign` without support for argument juggling,
multiple sources, and `customizer` functions.
@private
@param {Object} object The destination object.
@param {Object} source The source object.
@returns {Object} Returns `object`. | LazyWrapper | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function LodashWrapper(value, chainAll, actions) {
this.__wrapped__ = value;
this.__actions__ = actions || [];
this.__chain__ = !!chainAll;
} | The base implementation of `_.callback` which supports specifying the
number of arguments to provide to `func`.
@private
@param {*} [func=_.identity] The value to convert to a callback.
@param {*} [thisArg] The `this` binding of `func`.
@param {number} [argCount] The number of arguments to provide to `func`.
@returns ... | LodashWrapper | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function arrayCopy(source, array) {
var index = -1,
length = source.length;
array || (array = Array(length));
while (++index < length) {
array[index] = source[index];
}
return array;
} | The base implementation of `_.callback` which supports specifying the
number of arguments to provide to `func`.
@private
@param {*} [func=_.identity] The value to convert to a callback.
@param {*} [thisArg] The `this` binding of `func`.
@param {number} [argCount] The number of arguments to provide to `func`.
@returns ... | arrayCopy | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function arrayMap(array, iteratee) {
var index = -1,
length = array.length,
result = Array(length);
while (++index < length) {
result[index] = iteratee(array[index], index, array);
}
return result;
} | Used to identify `toStringTag` values supported by `_.clone`. | arrayMap | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function arraySome(array, predicate) {
var index = -1,
length = array.length;
while (++index < length) {
if (predicate(array[index], index, array)) {
return true;
}
}
return false;
} | Used to identify `toStringTag` values supported by `_.clone`. | arraySome | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseAssign(object, source) {
return source == null
? object
: baseCopy(source, keys(source), object);
} | Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
of values. | baseAssign | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseCallback(func, thisArg, argCount) {
var type = typeof func;
if (type == 'function') {
return thisArg === undefined
? func
: bindCallback(func, thisArg, argCount);
}
if (func == null) {
return identity;
}
if (type == 'object') {
return baseMatches(func);
}
return this... | The base implementation of `_.clone` without support for argument juggling
and `this` binding `customizer` functions.
@private
@param {*} value The value to clone.
@param {boolean} [isDeep] Specify a deep clone.
@param {Function} [customizer] The function to customize cloning values.
@param {string} [key] The key of `... | baseCallback | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseClone(value, isDeep, customizer, key, object, stackA, stackB) {
var result;
if (customizer) {
result = object ? customizer(value, key, object) : customizer(value);
}
if (result !== undefined) {
return result;
}
if (!isObject(value)) {
return value;
}
var isArr = isArray(value);
... | The base implementation of `_.forEach` without support for callback
shorthands and `this` binding.
@private
@param {Array|Object|string} collection The collection to iterate over.
@param {Function} iteratee The function invoked per iteration.
@returns {Array|Object|string} Returns `collection`. | baseClone | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseCopy(source, props, object) {
object || (object = {});
var index = -1,
length = props.length;
while (++index < length) {
var key = props[index];
object[key] = source[key];
}
return object;
} | The base implementation of `baseForIn` and `baseForOwn` which iterates
over `object` properties returned by `keysFunc` invoking `iteratee` for
each property. Iteratee functions may exit iteration early by explicitly
returning `false`.
@private
@param {Object} object The object to iterate over.
@param {Function} iterat... | baseCopy | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseFind(collection, predicate, eachFunc, retKey) {
var result;
eachFunc(collection, function(value, key, collection) {
if (predicate(value, key, collection)) {
result = retKey ? key : value;
return false;
}
});
return result;
} | The base implementation of `_.indexOf` without support for binary searches.
@private
@param {Array} array The array to search.
@param {*} value The value to search for.
@param {number} fromIndex The index to search from.
@returns {number} Returns the index of the matched value, else `-1`. | baseFind | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseFindIndex(array, predicate, fromRight) {
var length = array.length,
index = fromRight ? length : -1;
while ((fromRight ? index-- : ++index < length)) {
if (predicate(array[index], index, array)) {
return index;
}
}
return -1;
} | The base implementation of `_.indexOf` without support for binary searches.
@private
@param {Array} array The array to search.
@param {*} value The value to search for.
@param {number} fromIndex The index to search from.
@returns {number} Returns the index of the matched value, else `-1`. | baseFindIndex | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseForIn(object, iteratee) {
return baseFor(object, iteratee, keysIn);
} | Used to check objects for own properties. | baseForIn | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseForOwn(object, iteratee) {
return baseFor(object, iteratee, keys);
} | Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
of values. | baseForOwn | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseGet(object, path, pathKey) {
if (object == null) {
return;
}
object = toObject(object);
if (pathKey !== undefined && pathKey in object) {
path = [pathKey];
}
var index = 0,
length = path.length;
while (object != null && index < length) {
object = toObject(object)[path[index... | A specialized version of `baseIsEqual` for arrays and objects which performs
deep comparisons and tracks traversed objects enabling objects with circular
references to be compared.
@private
@param {Object} object The object to compare.
@param {Object} other The other object to compare.
@param {Function} equalFunc The ... | baseGet | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseIndexOf(array, value, fromIndex) {
if (value !== value) {
return indexOfNaN(array, fromIndex);
}
var index = fromIndex - 1,
length = array.length;
while (++index < length) {
if (array[index] === value) {
return index;
}
}
return -1;
} | A specialized version of `baseIsEqual` for arrays and objects which performs
deep comparisons and tracks traversed objects enabling objects with circular
references to be compared.
@private
@param {Object} object The object to compare.
@param {Object} other The other object to compare.
@param {Function} equalFunc The ... | baseIndexOf | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseIsEqual(value, other, customizer, isLoose, stackA, stackB) {
if (value === other) {
return true;
}
if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) {
return value !== value && other !== other;
}
return baseIsEqualDeep(value, other, baseIsEqual, customizer,... | A specialized version of `baseIsEqual` for arrays and objects which performs
deep comparisons and tracks traversed objects enabling objects with circular
references to be compared.
@private
@param {Object} object The object to compare.
@param {Object} other The other object to compare.
@param {Function} equalFunc The ... | baseIsEqual | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseIsEqualDeep(object, other, equalFunc, customizer, isLoose, stackA, stackB) {
var objIsArr = isArray(object),
othIsArr = isArray(other),
objTag = arrayTag,
othTag = arrayTag;
if (!objIsArr) {
objTag = objToString.call(object);
if (objTag == argsTag) {
objTag = objectTag;... | The function whose prototype all chaining wrappers inherit from.
@private | baseIsEqualDeep | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseIsMatch(object, matchData, customizer) {
var index = matchData.length,
length = index,
noCustomizer = !customizer;
if (object == null) {
return !length;
}
object = toObject(object);
while (index--) {
var data = matchData[index];
if ((noCustomizer && data[2])
? d... | The base implementation of `_.matchesProperty` which does not clone `srcValue`.
@private
@param {string} path The path of the property to get.
@param {*} srcValue The value to compare.
@returns {Function} Returns the new function. | baseIsMatch | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseLodash() {
// No operation performed.
} | The base implementation of `_.property` without support for deep paths.
@private
@param {string} key The key of the property to get.
@returns {Function} Returns the new function. | baseLodash | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseMap(collection, iteratee) {
var index = -1,
result = isArrayLike(collection) ? Array(collection.length) : [];
baseEach(collection, function(value, key, collection) {
result[++index] = iteratee(value, key, collection);
});
return result;
} | A specialized version of `baseProperty` which supports deep paths.
@private
@param {Array|string} path The path of the property to get.
@returns {Function} Returns the new function. | baseMap | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseMatches(source) {
var matchData = getMatchData(source);
if (matchData.length == 1 && matchData[0][2]) {
var key = matchData[0][0],
value = matchData[0][1];
return function(object) {
if (object == null) {
return false;
}
object = toObject(object);
return ... | The base implementation of `_.slice` without an iteratee call guard.
@private
@param {Array} array The array to slice.
@param {number} [start=0] The start position.
@param {number} [end=array.length] The end position.
@returns {Array} Returns the slice of `array`. | baseMatches | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseMatchesProperty(path, srcValue) {
var isArr = isArray(path),
isCommon = isKey(path) && isStrictComparable(srcValue),
pathKey = (path + '');
path = toPath(path);
return function(object) {
if (object == null) {
return false;
}
var key = pathKey;
object = toObject(obje... | The base implementation of `_.values` and `_.valuesIn` which creates an
array of `object` property values corresponding to the property names
of `props`.
@private
@param {Object} object The object to query.
@param {Array} props The property names to get values for.
@returns {Object} Returns the array of property value... | baseMatchesProperty | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseProperty(key) {
return function(object) {
return object == null ? undefined : toObject(object)[key];
};
} | Performs a binary search of `array` to determine the index at which `value`
should be inserted into `array` in order to maintain its sort order.
@private
@param {Array} array The sorted array to inspect.
@param {*} value The value to evaluate.
@param {boolean} [retHighest] Specify returning the highest qualified index... | baseProperty | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function basePropertyDeep(path) {
var pathKey = (path + '');
path = toPath(path);
return function(object) {
return baseGet(object, path, pathKey);
};
} | Performs a binary search of `array` to determine the index at which `value`
should be inserted into `array` in order to maintain its sort order.
@private
@param {Array} array The sorted array to inspect.
@param {*} value The value to evaluate.
@param {boolean} [retHighest] Specify returning the highest qualified index... | basePropertyDeep | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseSlice(array, start, end) {
var index = -1,
length = array.length;
start = start == null ? 0 : (+start || 0);
if (start < 0) {
start = -start > length ? 0 : (length + start);
}
end = (end === undefined || end > length) ? length : (+end || 0);
if (end < 0) {
end += length;
}
le... | This function is like `binaryIndex` except that it invokes `iteratee` for
`value` and each element of `array` to compute their sort ranking. The
iteratee is invoked with one argument; (value).
@private
@param {Array} array The sorted array to inspect.
@param {*} value The value to evaluate.
@param {Function} iteratee ... | baseSlice | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseToString(value) {
return value == null ? '' : (value + '');
} | This function is like `binaryIndex` except that it invokes `iteratee` for
`value` and each element of `array` to compute their sort ranking. The
iteratee is invoked with one argument; (value).
@private
@param {Array} array The sorted array to inspect.
@param {*} value The value to evaluate.
@param {Function} iteratee ... | baseToString | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function baseValues(object, props) {
var index = -1,
length = props.length,
result = Array(length);
while (++index < length) {
result[index] = object[props[index]];
}
return result;
} | A specialized version of `baseCallback` which only supports `this` binding
and specifying the number of arguments to provide to `func`.
@private
@param {Function} func The function to bind.
@param {*} thisArg The `this` binding of `func`.
@param {number} [argCount] The number of arguments to provide to `func`.
@return... | baseValues | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function binaryIndex(array, value, retHighest) {
var low = 0,
high = array ? array.length : low;
if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
while (low < high) {
var mid = (low + high) >>> 1,
computed = array[mid];
if ((retHighest ? (computed... | Creates a clone of the given array buffer.
@private
@param {ArrayBuffer} buffer The array buffer to clone.
@returns {ArrayBuffer} Returns the cloned array buffer. | binaryIndex | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function binaryIndexBy(array, value, iteratee, retHighest) {
value = iteratee(value);
var low = 0,
high = array ? array.length : 0,
valIsNaN = value !== value,
valIsNull = value === null,
valIsUndef = value === undefined;
while (low < high) {
var mid = nativeFloor((low + high) / 2),
... | Creates a clone of the given array buffer.
@private
@param {ArrayBuffer} buffer The array buffer to clone.
@returns {ArrayBuffer} Returns the cloned array buffer. | binaryIndexBy | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function bindCallback(func, thisArg, argCount) {
if (typeof func != 'function') {
return identity;
}
if (thisArg === undefined) {
return func;
}
switch (argCount) {
case 1: return function(value) {
return func.call(thisArg, value);
};
case 3: return function(value, index, collection)... | Creates an array that is the composition of partially applied arguments,
placeholders, and provided arguments into a single array of arguments.
@private
@param {Array|Object} args The provided arguments.
@param {Array} partials The arguments to prepend to those provided.
@param {Array} holders The `partials` placehold... | bindCallback | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function bufferClone(buffer) {
var result = new ArrayBuffer(buffer.byteLength),
view = new Uint8Array(result);
view.set(new Uint8Array(buffer));
return result;
} | This function is like `composeArgs` except that the arguments composition
is tailored for `_.partialRight`.
@private
@param {Array|Object} args The provided arguments.
@param {Array} partials The arguments to append to those provided.
@param {Array} holders The `partials` placeholder indexes.
@returns {Array} Returns ... | bufferClone | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function composeArgs(args, partials, holders) {
var holdersLength = holders.length,
argsIndex = -1,
argsLength = nativeMax(args.length - holdersLength, 0),
leftIndex = -1,
leftLength = partials.length,
result = Array(leftLength + argsLength);
while (++leftIndex < leftLength) {
res... | Creates a function that wraps `func` and invokes it with the `this`
binding of `thisArg`.
@private
@param {Function} func The function to bind.
@param {*} [thisArg] The `this` binding of `func`.
@returns {Function} Returns the new bound function. | composeArgs | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function composeArgsRight(args, partials, holders) {
var holdersIndex = -1,
holdersLength = holders.length,
argsIndex = -1,
argsLength = nativeMax(args.length - holdersLength, 0),
rightIndex = -1,
rightLength = partials.length,
result = Array(argsLength + rightLength);
while (++... | Creates a function that wraps `func` and invokes it with the `this`
binding of `thisArg`.
@private
@param {Function} func The function to bind.
@param {*} [thisArg] The `this` binding of `func`.
@returns {Function} Returns the new bound function. | composeArgsRight | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function createBaseEach(eachFunc, fromRight) {
return function(collection, iteratee) {
var length = collection ? getLength(collection) : 0;
if (!isLength(length)) {
return eachFunc(collection, iteratee);
}
var index = fromRight ? length : -1,
iterable = toObject(collection);
while (... | Creates a function that produces an instance of `Ctor` regardless of
whether it was invoked as part of a `new` expression or by `call` or `apply`.
@private
@param {Function} Ctor The constructor to wrap.
@returns {Function} Returns the new wrapped function. | createBaseEach | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function createBaseFor(fromRight) {
return function(object, iteratee, keysFunc) {
var iterable = toObject(object),
props = keysFunc(object),
length = props.length,
index = fromRight ? length : -1;
while ((fromRight ? index-- : ++index < length)) {
var key = props[index];
i... | Creates a function that produces an instance of `Ctor` regardless of
whether it was invoked as part of a `new` expression or by `call` or `apply`.
@private
@param {Function} Ctor The constructor to wrap.
@returns {Function} Returns the new wrapped function. | createBaseFor | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function createBindWrapper(func, thisArg) {
var Ctor = createCtorWrapper(func);
function wrapper() {
var fn = (this && this !== global && this instanceof wrapper) ? Ctor : func;
return fn.apply(thisArg, arguments);
}
return wrapper;
} | Creates a `_.find` or `_.findLast` function.
@private
@param {Function} eachFunc The function to iterate over a collection.
@param {boolean} [fromRight] Specify iterating from right to left.
@returns {Function} Returns the new find function. | createBindWrapper | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function wrapper() {
var fn = (this && this !== global && this instanceof wrapper) ? Ctor : func;
return fn.apply(thisArg, arguments);
} | Creates a `_.find` or `_.findLast` function.
@private
@param {Function} eachFunc The function to iterate over a collection.
@param {boolean} [fromRight] Specify iterating from right to left.
@returns {Function} Returns the new find function. | wrapper | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
function createCtorWrapper(Ctor) {
return function() {
// Use a `switch` statement to work with class constructors.
// See http://ecma-international.org/ecma-262/6.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
// for more details.
var args = arguments;
switch (args.length) {
... | Used to compose bitmasks for wrapper metadata. | createCtorWrapper | javascript | edp963/wormhole | rider/swagger-ui/swagger-ui.js | https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.