Skip to content
/ Zephyr Public

Collection of the ECMAScript abstract methods as standalone Javascript functions and a library with zero dependencies.

License

Notifications You must be signed in to change notification settings

Serrin/Zephyr

Repository files navigation

Zephyr

Download

Collection of the ECMAScript abstract methods as standalone Javascript functions and a library with zero dependencies.

Latest version: 1.0.1

Date: 2025-07-14T18:49:58.592Z

Tested on these browsers:

  • Windows Firefox
  • Windows Chrome
  • Windows Edge
  • iOS Safari
  • iOS Firefox
  • iOS Chrome
  • iOS Edge
  • Android Firefox
  • Android Chrome
  • Android Samsung Internet
  • Android Edge

The functions are available in the zephyr and/or ES object.

Editions

Edition Filename
developer zephyr.dev.js
minified zephyr.min.js
ES6 module zephyr.esm.js
testpages testsuite-dev.html
testsuite-min.html
testsuite-esm1.html
testsuite-esm2.html

DEV and MIN editions: If the ES global variable is used before the loading of the library, then the value of the variable is saved and you can restore with the noConflict(); function.

Github pages

version page link
Stable https://github.com/Serrin/Zephyr
Beta https://github.com/Serrin/Zephyr-beta

How to import the ESM edition

<script type="module">

// import the defaultExport object
import defaultExport from "./zephyr.esm.js";
window.zephyr = defaultExport;
window.ES = defaultExport;

// import with default with name
import { default as zephyr } from "./zephyr.esm.js";
window.zephyr = zephyr;
window.ES = zephyr;

// import all into a new zephyr object
import * as zephyr from "./zephyr.esm.js";
window.zephyr = zephyr;
window.ES = zephyr;

// import some functions
import { Type, HasProperty } from "./zephyr.esm.js";
window.Type = Type;
window.HasProperty = HasProperty;

</script>

Another way to import

<script type="module"> import "./zephyr.min.js"; </script>

API documentation

Function 262 TC39 Status
VERSION; DONE
noConflict(); DONE
IsObject(value); DONE
Completion(); Link Link DONE
Type(); Link Link DONE
StringIndexOf(); Link Link DONE
StringLastIndexOf(); Link DONE
NormalCompletion(); Link Link DONE
ThrowCompletion(); Link Link DONE
ReturnCompletion(); Link DONE
UpdateEmpty(); Link Link DONE
IsAccessorDescriptor(); Link Link TODO
IsDataDescriptor(); Link Link TODO
IsGenericDescriptor(); Link Link TODO
FromPropertyDescriptor(); Link Link TODO
ToPropertyDescriptor(); Link Link TODO
CompletePropertyDescriptor(); Link Link TODO
ToPrimitive(); Link Link DONE
OrdinaryToPrimitive(); Link Link DONE
ToBoolean(); Link Link DONE
ToNumeric(); Link Link DONE
ToNumber(); Link Link DONE
StringToNumber(); Link Link DONE
ToIntegerOrInfinity(); Link Link DONE
ToInt32(); Link Link DONE
ToUint32(); Link Link DONE
ToInt16(); Link Link DONE
ToUint16(); Link Link DONE
ToInt8(); Link Link DONE
ToUint8(); Link Link DONE
ToUint8Clamp(); Link Link DONE
ToBigInt(); Link Link DONE
StringToBigInt(); Link Link DONE
ToBigInt64(); Link Link DONE
ToBigUint64(); Link Link DONE
ToString(); Link Link DONE
ToObject(); Link Link DONE
ToPropertyKey(); Link Link DONE
ToLength(); Link Link DONE
CanonicalNumericIndexString(); Link Link DONE
RequireObjectCoercible(); Link DONE
ToIndex(); Link Link DONE
IsArray(); Link Link DONE
IsCallable(); Link Link DONE
IsConstructor(); Link Link DONE
IsExtensible(); Link Link DONE
IsIntegralNumber(); Link DONE
IsRegExp(); Link Link DONE
IsPropertyKey(); Link DONE
IsStringWellFormedUnicode(); Link Link DONE
SameType(); Link DONE
SameValue(); Link Link DONE
SameValueZero(); Link Link DONE
SameValueNonNumber(); Link Link DONE
IsLessThan(); Link Link DONE
IsLooselyEqual(); Link Link DONE
IsStrictlyEqual(); Link Link DONE
MakeBasicObject(); Link Link DONE
Get(); Link Link DONE
GetV(); Link Link DONE
Set(); Link Link DONE
CreateDataProperty(); Link Link DONE
CreateDataPropertyOrThrow(); Link Link DONE
CreateNonEnumerableDataPropertyOrThrow(); Link Link DONE
DefinePropertyOrThrow(); Link Link DONE
DeletePropertyOrThrow(); Link Link DONE
GetMethod(); Link Link DONE
HasProperty(); Link Link DONE
HasOwnProperty(); Link Link DONE
Call(); Link Link DONE
Construct(); Link Link DONE
SetIntegrityLevel(); Link Link DONE
TestIntegrityLevel(); Link Link DONE
CreateArrayFromList(); Link Link DONE
LengthOfArrayLike(); Link Link DONE
CreateListFromArrayLike(); Link Link DONE
Invoke(); Link Link DONE
OrdinaryHasInstance(); Link Link DONE
SpeciesConstructor(); Link Link DONE
EnumerableOwnProperties(); Link Link DONE
GetFunctionRealm(); Link Link TODO
CopyDataProperties(); Link Link DONE
PrivateElementFind(); Link Link TODO
PrivateFieldAdd(); Link Link TODO
PrivateMethodOrAccessorAdd(); Link Link TODO
HostEnsureCanAddPrivateElement(); Link Link TODO
PrivateGet(); Link Link TODO
PrivateSet(); Link Link TODO
DefineField(); Link Link TODO
InitializeInstanceElements(); Link Link TODO
AddValueToKeyedGroup(); Link Link DONE
GroupBy(); Link Link DONE
SetterThatIgnoresPrototypeProperties(); Link DONE
GetIteratorDirect(); Link DONE
GetIteratorFromMethod(); Link Link DONE
GetIterator(); Link Link DONE
GetIteratorFlattenable(); Link DONE
IteratorNext(); Link Link DONE
IteratorComplete(); Link Link DONE
IteratorValue(); Link Link DONE
IteratorStep(); Link Link DONE
IteratorStepValue(); Link Link DONE
IteratorClose(); Link Link DONE
IfAbruptCloseIterator(); Link Link DONE
AsyncIteratorClose(); Link Link DONE
CreateIteratorResultObject(); Link Link DONE
CreateListIteratorRecord(); Link Link DONE
IteratorToList(); Link Link DONE
ClearKeptObjects(); Link Link TODO
AddToKeptObjects(); Link Link TODO
CleanupFinalizationRegistry(); Link Link TODO
CanBeHeldWeakly(); Link Link DONE
OrdinaryObjectCreate(); Link Link DONE
OrdinaryCreateFromConstructor(); Link Link DONE
GetPrototypeFromConstructor(); Link Link DONE
RequireInternalSlot(); Link Link DONE
OrdinaryFunctionCreate(); Link Link DONE
AddRestrictedFunctionProperties(); Link Link TODO
MakeConstructor(); Link Link DONE
MakeClassConstructor(); Link Link TODO
MakeMethod(); Link Link DONE
DefineMethodProperty(); Link Link DONE
SetFunctionName(); Link Link DONE
SetFunctionLength(); Link Link DONE
FunctionDeclarationInstantiation(); Link Link TODO
BuiltinCallOrConstruct(); Link Link TODO
CreateBuiltinFunction(); link Link TODO
BoundFunctionCreate(); Link Link TODO
ArrayCreate(); Link Link DONE
ArraySpeciesCreate(); Link Link DONE
ArraySetLength(); Link Link DONE
StringCreate(); Link Link DONE
StringGetOwnProperty(); Link Link DONE
CreateUnmappedArgumentsObject(); Link Link DONE
CreateMappedArgumentsObject(); Link Link TODO
MakeTypedArrayWithBufferWitnessRecord(); Link Link TODO
TypedArrayCreate(); Link Link DONE
TypedArrayByteLength(); Link Link DONE
TypedArrayLength(); Link Link DONE
IsTypedArrayOutOfBounds(); Link Link TODO
IsTypedArrayFixedLength(); Link TODO
IsValidIntegerIndex(); Link Link DONE
TypedArrayGetElement(); Link Link DONE
TypedArraySetElement(); Link Link DONE
IsArrayBufferViewOutOfBounds(); Link Link TODO
ModuleNamespaceCreate(); Link Link TODO
SetImmutablePrototype(); Link Link DONE
ValidateNonRevokedProxy(); Link Link DONE
ProxyCreate(); Link Link DONE
UTF16EncodeCodePoint(); Link Link DONE
CodePointsToString(); Link Link DONE
UTF16SurrogatePairToCodePoint(); Link Link DONE
CodePointAt(); Link Link DONE
StringToCodePoints(); Link Link DONE
ParseText(); Link Link TODO
GetTemplateObject(); Link Link TODO
KeyForSymbol(); Link Link DONE
InstallErrorCause(); Link Link DONE
NumberToBigInt(); Link Link DONE
TrimString(); Link Link DONE
CreateArrayIterator(); Link Link DONE
FindViaPredicate(); Link Link DONE
FlattenIntoArray(); Link Link DONE
SortIndexedProperties(); Link Link DONE
CompareArrayElements(); Link Link DONE
TypedArraySpeciesCreate(); Link Link DONE
TypedArrayCreateFromConstructor(); Link Link DONE
TypedArrayCreateSameType(); Link Link DONE
ValidateTypedArray(); Link Link DONE
TypedArrayElementSize(); Link Link DONE
TypedArrayElementType(); Link Link DONE
AddEntriesFromIterable(); Link Link DONE
CompareTypedArrayElements(); Link Link DONE
CreateMapIterator(); Link Link DONE
GetSetRecord(); Link DONE
SetDataHas(); Link DONE
SetDataIndex(); Link DONE
SetDataSize(); Link DONE
CreateSetIterator(); Link Link DONE
WeakRefDeref(); Link Link DONE
CanonicalizeKeyedCollectionKey(); Link DONE
CreateAsyncFromSyncIterator(); Link Link DONE
AsyncFromSyncIteratorContinuation(); Link Link TODO
CreateResolvingFunctions(); Link Link TODO
FulfillPromise(); Link Link TODO
NewPromiseCapability(); Link Link TODO
IsPromise(); Link Link DONE
RejectPromise(); Link Link TODO
TriggerPromiseReactions(); Link Link TODO
HostPromiseRejectionTracker(); Link Link TODO
CreateHTML(); Link Link DONE

License

https://opensource.org/licenses/MIT

MIT License

SPDX short identifier: MIT

Copyright (c) 2025 Ferenc Czigler

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


© Copyright 2025 Ferenc Czigler

About

Collection of the ECMAScript abstract methods as standalone Javascript functions and a library with zero dependencies.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published