/
eb
/
Surf
Обзор
Документация
Войти
/
eb
/
Surf
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Surf
/
node_modules
/
es5-ext
/
..
.github
Initial commit
6 лет назад
array
Initial commit
6 лет назад
boolean
Initial commit
6 лет назад
date
Initial commit
6 лет назад
error
Initial commit
6 лет назад
function
Initial commit
6 лет назад
iterable
Initial commit
6 лет назад
json
Initial commit
6 лет назад
math
Initial commit
6 лет назад
number
Initial commit
6 лет назад
object
Initial commit
6 лет назад
promise
Initial commit
6 лет назад
reg-exp
Initial commit
6 лет назад
string
Initial commit
6 лет назад
test
Initial commit
6 лет назад
.editorconfig
Initial commit
6 лет назад
CHANGELOG.md
Initial commit
6 лет назад
CHANGES
Initial commit
6 лет назад
LICENSE
Initial commit
6 лет назад
README.md
Initial commit
6 лет назад
global.js
Initial commit
6 лет назад
index.js
Initial commit
6 лет назад
optional-chaining.js
Initial commit
6 лет назад
package.json
Initial commit
6 лет назад
safe-to-string.js
Initial commit
6 лет назад
to-short-string-representation.js
Initial commit
6 лет назад
es5-ext
ECMAScript 5 extensions
(with respect to ECMAScript 6 standard)
Installation
Usage
ECMAScript 6 features
List of ES6 shims
Non ECMAScript standard features
API
Global extensions
global (es5-ext/global)
Array Constructor extensions
from(arrayLike[, mapFn[, thisArg]]) (es5-ext/array/from)
generate([length[, …fill]]) (es5-ext/array/generate)
isPlainArray(x) (es5-ext/array/is-plain-array)
of([…items]) (es5-ext/array/of)
toArray(obj) (es5-ext/array/to-array)
validArray(obj) (es5-ext/array/valid-array)
Array Prototype extensions
arr.binarySearch(compareFn) (es5-ext/array/#/binary-search)
arr.clear() (es5-ext/array/#/clear)
arr.compact() (es5-ext/array/#/compact)
arr.concat() (es5-ext/array/#/concat)
arr.contains(searchElement[, position]) (es5-ext/array/#/contains)
arr.copyWithin(target, start[, end]) (es5-ext/array/#/copy-within)
arr.diff(other) (es5-ext/array/#/diff)
arr.eIndexOf(searchElement[, fromIndex]) (es5-ext/array/#/e-index-of)
arr.eLastIndexOf(searchElement[, fromIndex]) (es5-ext/array/#/e-last-index-of)
arr.entries() (es5-ext/array/#/entries)
arr.exclusion([…lists]]) (es5-ext/array/#/exclusion)
arr.fill(value[, start, end]) (es5-ext/array/#/fill)
arr.filter(callback[, thisArg]) (es5-ext/array/#/filter)
arr.find(predicate[, thisArg]) (es5-ext/array/#/find)
arr.findIndex(predicate[, thisArg]) (es5-ext/array/#/find-index)
arr.first() (es5-ext/array/#/first)
arr.firstIndex() (es5-ext/array/#/first-index)
arr.flatten() (es5-ext/array/#/flatten)
arr.forEachRight(cb[, thisArg]) (es5-ext/array/#/for-each-right)
arr.group(cb[, thisArg]) (es5-ext/array/#/group)
arr.indexesOf(searchElement[, fromIndex]) (es5-ext/array/#/indexes-of)
arr.intersection([…lists]) (es5-ext/array/#/intersection)
arr.isCopy(other) (es5-ext/array/#/is-copy)
arr.isUniq() (es5-ext/array/#/is-uniq)
arr.keys() (es5-ext/array/#/keys)
arr.last() (es5-ext/array/#/last)
arr.lastIndex() (es5-ext/array/#/last)
arr.map(callback[, thisArg]) (es5-ext/array/#/map)
arr.remove(value[, …valuen]) (es5-ext/array/#/remove)
arr.separate(sep) (es5-ext/array/#/separate)
arr.slice(callback[, thisArg]) (es5-ext/array/#/slice)
arr.someRight(cb[, thisArg]) (es5-ext/array/#/someRight)
arr.splice(callback[, thisArg]) (es5-ext/array/#/splice)
arr.uniq() (es5-ext/array/#/uniq)
arr.values() (es5-ext/array/#/values)
arr[@@iterator] (es5-ext/array/#/@@iterator)
Boolean Constructor extensions
isBoolean(x) (es5-ext/boolean/is-boolean)
Date Constructor extensions
isDate(x) (es5-ext/date/is-date)
validDate(x) (es5-ext/date/valid-date)
Date Prototype extensions
date.copy(date) (es5-ext/date/#/copy)
date.daysInMonth() (es5-ext/date/#/days-in-month)
date.floorDay() (es5-ext/date/#/floor-day)
date.floorMonth() (es5-ext/date/#/floor-month)
date.floorYear() (es5-ext/date/#/floor-year)
date.format(pattern) (es5-ext/date/#/format)
Error Constructor extensions
custom(message/, code, ext/) (es5-ext/error/custom)
isError(x) (es5-ext/error/is-error)
validError(x) (es5-ext/error/valid-error)
Error Prototype extensions
err.throw() (es5-ext/error/#/throw)
Function Constructor extensions
constant(x) (es5-ext/function/constant)
identity(x) (es5-ext/function/identity)
invoke(name[, …args]) (es5-ext/function/invoke)
isArguments(x) (es5-ext/function/is-arguments)
isFunction(arg) (es5-ext/function/is-function)
noop() (es5-ext/function/noop)
pluck(name) (es5-ext/function/pluck)
validFunction(arg) (es5-ext/function/valid-function)
Function Prototype extensions
fn.compose([…fns]) (es5-ext/function/#/compose)
fn.copy() (es5-ext/function/#/copy)
fn.curry([n]) (es5-ext/function/#/curry)
fn.lock([…args]) (es5-ext/function/#/lock)
fn.not() (es5-ext/function/#/not)
fn.partial([…args]) (es5-ext/function/#/partial)
fn.spread() (es5-ext/function/#/spread)
fn.toStringTokens() (es5-ext/function/#/to-string-tokens)
Math extensions
acosh(x) (es5-ext/math/acosh)
asinh(x) (es5-ext/math/asinh)
atanh(x) (es5-ext/math/atanh)
cbrt(x) (es5-ext/math/cbrt)
clz32(x) (es5-ext/math/clz32)
cosh(x) (es5-ext/math/cosh)
expm1(x) (es5-ext/math/expm1)
fround(x) (es5-ext/math/fround)
hypot([…values]) (es5-ext/math/hypot)
imul(x, y) (es5-ext/math/imul)
log1p(x) (es5-ext/math/log1p)
log2(x) (es5-ext/math/log2)
log10(x) (es5-ext/math/log10)
sign(x) (es5-ext/math/sign)
sinh(x) (es5-ext/math/sinh)
tanh(x) (es5-ext/math/tanh)
trunc(x) (es5-ext/math/trunc)
Number Constructor extensions
EPSILON (es5-ext/number/epsilon)
isFinite(x) (es5-ext/number/is-finite)
isInteger(x) (es5-ext/number/is-integer)
isNaN(x) (es5-ext/number/is-nan)
isNumber(x) (es5-ext/number/is-number)
isSafeInteger(x) (es5-ext/number/is-safe-integer)
MAXSAFEINTEGER (es5-ext/number/max-safe-integer)\
MINSAFEINTEGER (es5-ext/number/min-safe-integer)\
toInteger(x) (es5-ext/number/to-integer)
toPosInteger(x) (es5-ext/number/to-pos-integer)
toUint32(x) (es5-ext/number/to-uint32)
Number Prototype extensions
num.pad(length[, precision]) (es5-ext/number/#/pad)
Object Constructor extensions
assign(target, source[, …sourcen]) (es5-ext/object/assign)
clear(obj) (es5-ext/object/clear)
compact(obj) (es5-ext/object/compact)
compare(obj1, obj2) (es5-ext/object/compare)
copy(obj) (es5-ext/object/copy)
copyDeep(obj) (es5-ext/object/copy-deep)
count(obj) (es5-ext/object/count)
create(obj[, properties]) (es5-ext/object/create)
eq(x, y) (es5-ext/object/eq)
every(obj, cb[, thisArg[, compareFn]]) (es5-ext/object/every)
filter(obj, cb[, thisArg]) (es5-ext/object/filter)
firstKey(obj) (es5-ext/object/first-key)
flatten(obj) (es5-ext/object/flatten)
forEach(obj, cb[, thisArg[, compareFn]]) (es5-ext/object/for-each)
getPropertyNames() (es5-ext/object/get-property-names)
is(x, y) (es5-ext/object/is)
isArrayLike(x) (es5-ext/object/is-array-like)
isCopy(x, y) (es5-ext/object/is-copy)
isCopyDeep(x, y) (es5-ext/object/is-copy-deep)
isEmpty(obj) (es5-ext/object/is-empty)
isObject(arg) (es5-ext/object/is-object)
isPlainObject(arg) (es5-ext/object/is-plain-object)
keyOf(obj, searchValue) (es5-ext/object/key-of)
keys(obj) (es5-ext/object/keys)
map(obj, cb[, thisArg]) (es5-ext/object/map)
mapKeys(obj, cb[, thisArg]) (es5-ext/object/map-keys)
mixin(target, source) (es5-ext/object/mixin)
mixinPrototypes(target, …source]) (es5-ext/object/mixin-prototypes)
normalizeOptions(options) (es5-ext/object/normalize-options)
primitiveSet([…names]) (es5-ext/object/primitive-set)
safeTraverse(obj[, …names]) (es5-ext/object/safe-traverse)
serialize(value) (es5-ext/object/serialize)
setPrototypeOf(object, proto) (es5-ext/object/set-prototype-of)
some(obj, cb[, thisArg[, compareFn]]) (es5-ext/object/some)
toArray(obj[, cb[, thisArg[, compareFn]]]) (es5-ext/object/to-array)
unserialize(str) (es5-ext/object/unserialize)
validCallable(x) (es5-ext/object/valid-callable)
validObject(x) (es5-ext/object/valid-object)
validValue(x) (es5-ext/object/valid-value)
Promise Prototype extensions
promise.finally(onFinally) (es5-ext/promise/#/finally)
RegExp Constructor extensions
escape(str) (es5-ext/reg-exp/escape)
isRegExp(x) (es5-ext/reg-exp/is-reg-exp)
validRegExp(x) (es5-ext/reg-exp/valid-reg-exp)
RegExp Prototype extensions
re.isSticky(x) (es5-ext/reg-exp/#/is-sticky)
re.isUnicode(x) (es5-ext/reg-exp/#/is-unicode)
re.match(string) (es5-ext/reg-exp/#/match)
re.replace(string, replaceValue) (es5-ext/reg-exp/#/replace)
re.search(string) (es5-ext/reg-exp/#/search)
re.split(string) (es5-ext/reg-exp/#/search)
re.sticky (es5-ext/reg-exp/#/sticky/implement)
re.unicode (es5-ext/reg-exp/#/unicode/implement)
String Constructor extensions
formatMethod(fMap) (es5-ext/string/format-method)
fromCodePoint([…codePoints]) (es5-ext/string/from-code-point)
isString(x) (es5-ext/string/is-string)
randomUniq() (es5-ext/string/random-uniq)
raw(callSite[, …substitutions]) (es5-ext/string/raw)
String Prototype extensions
str.at(pos) (es5-ext/string/#/at)
str.camelToHyphen() (es5-ext/string/#/camel-to-hyphen)
str.capitalize() (es5-ext/string/#/capitalize)
str.caseInsensitiveCompare(str) (es5-ext/string/#/case-insensitive-compare)
str.codePointAt(pos) (es5-ext/string/#/code-point-at)
str.contains(searchString[, position]) (es5-ext/string/#/contains)
str.endsWith(searchString[, endPosition]) (es5-ext/string/#/ends-with)
str.hyphenToCamel() (es5-ext/string/#/hyphen-to-camel)
str.indent(str[, count]) (es5-ext/string/#/indent)
str.last() (es5-ext/string/#/last)
str.normalize([form]) (es5-ext/string/#/normalize)
str.pad(fill[, length]) (es5-ext/string/#/pad)
str.repeat(n) (es5-ext/string/#/repeat)
str.plainReplace(search, replace) (es5-ext/string/#/plain-replace)
str.plainReplaceAll(search, replace) (es5-ext/string/#/plain-replace-all)
str.startsWith(searchString[, position]) (es5-ext/string/#/starts-with)
str[@@iterator] (es5-ext/string/#/@@iterator)
Tests
Security contact information
es5-ext for enterprise
README.md