JSPM

  • Created
  • Published
  • Downloads 56
  • Score
    100M100P100Q61594F
  • License MIT

A package that helps validate data at runtime

Package Exports

  • thiis
  • thiis/dist/index.js
  • thiis/dist/index.m.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (thiis) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

thiis

NPM Latest Version Downloads Count Bundle Size Stars

🌍 Languages

πŸ‡ΊπŸ‡¦ ukraine | πŸ‡¬πŸ‡§ english

Introduction

Why you should use and support the package:

  1. βœ… Typification.
  2. βœ… Reducing the code in the project.
  3. βœ… Easier to read and understand the code.
  4. βœ… CDN support.
  5. βœ… Compatible with ECMAScript 2015.
  6. βœ… Compatible with the oldest version of TypeScript (0.8.0).
  7. βœ… Maintenance of global contexts: globalThis, window, self, global.
  8. βœ… No dependencies
  9. βœ… AMD, Node & browser ready
  10. βœ… Small size: ~8KB.

πŸ’‘ Idea

this package was created in order to simplify writing in typescript / javascript, it often happens that you need to have checks for different types of data, these checks can be "huge", but if you could simply describe in words what we want to check?

For example, why write:

if (typeof variable === 'object' && variable !== null && !Array.isArray(variable) && Object.keys(variable)?.length) {
}

if you can write something like:

if (is.object.not.empty(variable)) {
}

πŸ“ Table of contents

πŸ’Ώ Installation

npm install thiis

πŸ”— CDN

<script>
  var exports = {};
</script>
<script src="//unpkg.com/thiis@0.0.0/dist/index.js"></script>
<script>
  const { is } = exports;
  console.log(is.string('')); // true
</script>

Back to table of contents

πŸ™Œ Usage

import {is} from "thiis";

Examples

Syntax

$method = 'ANY_METHOD_NAME';

is[$method]();
is[$method][$method]();
is[$method].or[$method]();
is[$method].not[$method]();

$model = 'ANY_MODEL_WICH_DECLARE_IN_PACKAGE_BY_DECORATOR'; // Decorator: @RegisterInIs()

is[$model]();
is[$model][$model]();
is[$model].or[$model]();
is[$model].not[$model]();

// And yes, you can mix:

is[$cmd][$model]();
is[$model].or[$cmd]();
is[$cmd].not[$model]();

Methods

import {IsConfig} from './index';

is.array([]); // true

is.bigInt(1n); // true

is.boolean(false); // true

is.compare({a: 1}, {a: 1}); // true
is.compare({a: 1}, {}); // false
is.compare({}, {a: 1}); // false
is.compare({}, {}); // true

is.Date(new Date()); // true

is.empty(''); // true
is.empty(' '); // true
is.empty(new Map()); // true
is.empty({}); // true
is.empty([]); // true

is.Error(new Error()); // true

is.EvalError(new EvalError()); // true

is.false(false); // true

is.DataView(new DataView(new ArrayBuffer(16), 0)); // true

is.falsy(''); // true

// This method will check if the argument is equal to the base type: Function
is.Function(() => {
}); // true

// This method checks not only if the argument is a function, but also if the argument is an asynchronous function or a generative
is.function(() => {
}); // true

is.instanceof(new Boolean(false), Boolean); // true

is.Map(new Map()); // true

is.null(null); // true

is.number(0); // true

is.object({}); // true

is.ReferenceError(new ReferenceError()); // true

is.RegExp(new RegExp()); // true

is.Set(new Set()); // true

is.string(''); // true

is.symbol(Symbol()); // true

is.SyntaxError(new SyntaxError()); // true

is.true(true); // true

is.truthy(1); // true

is.TypeError(new TypeError()); // true

is.undefined(undefined); // true

is.URIError(new URIError()); // true

is.WeakMap(new WeakMap()); // true

is.WeakSet(new WeakSet()); // true

is.len_5('words') // true
is.len_4('words') // false
is.len_gt_4('words') // true
is.len_lt_5('words') // false
is.len_lte_5('words') // true
is.len_gte_5('words') // true
is.len_gt_4_lt_6('words') // true
is.len_gte_5_lt_6('words') // true
is.len_gt_4_lte_5('words') // true

// You can also configure global package settings
IsConfig.error.enabled = false; // In this case, all console.error will be disabled, they are enabled by default.

// If you need to change the regex say for macAddress, here is an example:
IsConfig.regex.macAddress = /[Your regex]/;

// If you don't want the package to fight in the global context, then do it like this:
IsConfig.useGlobalContext = false;

Methods with connection

is.array.empty([]); // true

is.bigInt.or.number(-1); // true

is.boolean.or.truthy('false'); // true

is.false.or.falsy(''); // true

is.null.or.undefined(null); // true

is.object.or.Function({}); // true
is.object.or.function({}); // true

is.string.or.true.or.symbol(true); // true

Methods with wrappers

is.object.not.empty({ a: 1 }); // true

is.not.object({}); // false

is.not.number(1n); // true

Back to table of contents

Methods with your models

You have the option to add any class to the package yourself for further testing

@RegisterInIs({
  className: 'person', // You can customize the model name, i.e.: is.person((new Person())) // true
})
class PersonModel {}

@RegisterInIs({
  className: 'woman',
})
class WomanModel extends PersonModel {}

@RegisterInIs({
  className: 'man',
})
class ManModel extends PersonModel {}

@RegisterInIs()
class AddressModel {}

const person = new PersonModel();
const man = new ManModel();
const woman = new WomanModel();
const address = new AddressModel();

is.person(person); // true

is.person(man); // true

is.person(woman); // true

is.person(address); // false

is.man(person); // false

is.woman(person); // false

is.AddressModel(address); // true

is.woman.or.man(woman); // true

is.not.woman(man); // true

is.not.man(man); // false

// Good Example: Cart

@RegisterInIs()
class Cart {
  public size: number = 0;
}

const cart: Cart = new Cart();
is.Cart.empty(cart); // true
cart.size = 1;
is.Cart.empty(cart); // false

// Bad Example: Cart

@RegisterInIs()
class CartTwo {
  public total: number = 0;
}

const cartTwo: CartTwo = new CartTwo();
is.CartTwo.empty(cartTwo); // false
cartTwo.size = 1;
is.CartTwo.empty(cartTwo); // false
CDN
const { RegisterInIs } = exports;

// Person
class PersonModel {
  // Your code ...
}

RegisterInIs()(PersonModel);

// Woman
class WomanModel extends PersonModel {
  // Your code ...
}

RegisterInIs({
  className: 'woman',
})(WomanModel);

// Check
const person = new PersonModel();
const woman = new WomanModel();

// Check
is.PersonModel(person); // true
is.PersonModel(woman); // true
is.woman(woman); // true
is.woman(person); // false

Custom method

@RegisterInIs({
  customMethod: 'customNameOfMethod',
})
class PostModel {
  public static customNameOfMethod(argument: unknown): argument is PostModel {
    return `Hello ${argument}`;
  }
}

is.PostModel('world'); // Returns: Hello world

Back to table of contents

Use Cases

array:filter

const onlyNumbers: number[] = [0, 1, '', 'test'];
console.log(onlyNumbers.filter(is.number)); // [0, 1]

const onlyStringList: string[] = [0, 1, '', 'test'];
console.log(onlyStringList.filter(is.string)); // ['', 'test']

const onlyNotEmptyStringList: string[] = [0, 1, '', 'test'];
console.log(onlyNotEmptyStringList.filter(is.string.not.empty)); // ['test']

array:some

const onlyNumbers: number[] = [0, 1, '', 'test'];
console.log(onlyNumbers.some(is.string.or.object)); // true

const onlyStringList: string[] = [0, 1, '', 'test'];
console.log(onlyStringList.some(is.not.symbol)); // false

const onlyNotEmptyStringList: string[] = [0, 1, '', 'test'];
console.log(onlyNotEmptyStringList.some(is.string.empty)); // true

array:every

const onlyNumbers: number[] = [0, 1, '', 'test'];
console.log(onlyNumbers.every(is.string.or.number)); // true

const onlyStringList: string[] = [0, 1, '', 'test'];
console.log(onlyStringList.every(is.string)); // false

const onlyNotEmptyStringList: string[] = [0, 1, '', 'test'];
console.log(onlyNotEmptyStringList.every(is.not.object)); // true

observable:pipe:filter

const stream$: Stream<boolean> = new Stream<boolean>();

stream$.pipe(filter(is.boolean)).subscribe(console.log); // true, false

stream$.next([false]); // Bad[README.ua.md](README.ua.md)
stream$.next(0); // Bad

stream$.next(true); // Good

stream$.next({ false: false }); // Bad

stream$.next(false); // Good

stream$.next(1); // Bad
stream$.next('false'); // Bad

Back to table of contents

πŸ—ƒοΈ API

All methods return a boolean type

List of methods

Name Tests Status New name Comment
array βœ…
bigInt βœ…
boolean βœ…
camelCase βœ…πŸ†•
char βœ…πŸ†•
compare βœ…
empty βœ…
even βœ…πŸ†•
false βœ…
falsy βœ…
function βœ… RETURNED if there is a need to check whether something from the package is a function, use is.Function instead of is.function
asyncFunction βž–
generatorFunction βž–
instanceof βœ…
int βœ…πŸ†•
ipv4 βœ…πŸ†•
ipv6 βœ…πŸ†•
kebabCase βœ…πŸ†•
len_N βœ…πŸ†• N - Any positive integer
len_gt_N βœ…πŸ†• gt - greater than
len_lt_N βœ…πŸ†• lt - less than
len_lte_N βœ…πŸ†• lte - less then or equal
len_gte_N βœ…πŸ†• gte - greater then or equal
len_gt_N_lt_N βœ…πŸ†•
len_gte_N_lt_N βœ…πŸ†•
len_gte_N_lte_N βœ…πŸ†•
len_gt_N_lte_N βœ…πŸ†•
macAddress βœ…πŸ†•
null βœ…
number βœ…
numeric βœ…πŸ†•
object βœ…
odd βœ…πŸ†•
pascalMethod βœ…πŸ†•
snakeCase βœ…πŸ†•
string βœ…
symbol βœ…
true βœ…
truthy βœ…
infinity βœ…
undefined βœ…
NaN βž– DELETED isNaN()
upperCase βœ…πŸ†•
word βœ…
zero βœ…
positive βœ… Validate if number is more than 0
negative βœ… Validate if number is less than 0
primitive βœ… string, number, NaN, bigint, boolean, undefined, symbol, null
promise βž–

Name - the name of a method that you can call to check certain types of data.

Tests - note the status of whether tests were written in the project to verify this method.

Status - we inform you that the method has been deleted, but if the tests are marked as OK, it means that this method is available, but has a different name and the tests are also written.

New name - informs that this method now has a new name.

List of wrappers and connections

Name Tests Status
not βœ…
or βœ…
all βž– DELETED

New methods that are available through the package, but which are only declared in the package, but actually take data from outside the package.

Generale (841 methods)

Name Tests
Map βœ…
String βž–
Date βœ…
Set βœ…
URIError βœ…
RegExp βœ…
WeakSet βœ…
WeakMap βœ…
DataView βœ…
Float32Array βž–
Int32Array βž–
Uint8ClampedArray βž–
Int8Array βž–
Uint8Array βž–
Int16Array βž–
Uint16Array βž–
Uint32Array βž–
Float64Array βž–
BigInt64Array βž–
BigUint64Array βž–
RangeError βž–
Error βœ…
EvalError βœ…
ReferenceError βœ…
SyntaxError βœ…
TypeError βœ…
Algorithm βž–
AssignedNodesOptions βž–
AudioBufferOptions βž–
AudioBufferSourceOptions βž–
AudioConfiguration βž–
AudioContextOptions βž–
AudioNodeOptions βž–
AudioTimestamp βž–
AuthenticationExtensionsClientInputs βž–
AuthenticationExtensionsClientOutputs βž–
AuthenticatorSelectionCriteria βž–
BlobEventInit βž–
BlobPropertyBag βž–
CSSStyleSheetInit βž–
CacheQueryOptions βž–
CanvasRenderingContext2DSettings βž–
ClientQueryOptions βž–
ClipboardItemOptions βž–
ComputedKeyframe βž–
ConstantSourceOptions βž–
ConstrainBooleanParameters βž–
ConstrainDOMStringParameters βž–
CredentialCreationOptions βž–
CredentialPropertiesOutput βž–
CredentialRequestOptions βž–
CryptoKeyPair βž–
DOMMatrix2DInit βž–
DOMPointInit βž–
DOMQuadInit βž–
DOMRectInit βž–
DeviceMotionEventAccelerationInit βž–
DeviceMotionEventRotationRateInit βž–
DisplayMediaStreamOptions βž–
DocumentTimelineOptions βž–
DoubleRange βž–
EffectTiming βž–
ElementCreationOptions βž–
ElementDefinitionOptions βž–
EventInit βž–
EventListenerOptions βž–
EventSourceInit βž–
FileSystemFlags βž–
FileSystemGetDirectoryOptions βž–
FileSystemGetFileOptions βž–
FileSystemRemoveOptions βž–
FocusOptions βž–
FontFaceDescriptors βž–
FullscreenOptions βž–
GetAnimationsOptions βž–
GetNotificationOptions βž–
GetRootNodeOptions βž–
IDBDatabaseInfo βž–
IDBIndexParameters βž–
IDBObjectStoreParameters βž–
IDBTransactionOptions βž–
IdleRequestOptions βž–
ImageBitmapOptions βž–
ImageBitmapRenderingContextSettings βž–
ImageDataSettings βž–
ImportMeta βž–
IntersectionObserverEntryInit βž–
IntersectionObserverInit βž–
JsonWebKey βž–
KeyAlgorithm βž–
Keyframe βž–
LockInfo βž–
LockManagerSnapshot βž–
LockOptions βž–
MediaCapabilitiesInfo βž–
MediaConfiguration βž–
MediaElementAudioSourceOptions βž–
MediaImage βž–
MediaKeySystemConfiguration βž–
MediaKeySystemMediaCapability βž–
MediaMetadataInit βž–
MediaPositionState βž–
MediaRecorderOptions βž–
MediaSessionActionDetails βž–
MediaStreamAudioSourceOptions βž–
MediaStreamConstraints βž–
MediaTrackCapabilities βž–
MediaTrackConstraintSet βž–
MediaTrackSettings βž–
MediaTrackSupportedConstraints βž–
MutationObserverInit βž–
NavigationPreloadState βž–
NotificationAction βž–
NotificationOptions βž–
OfflineAudioContextOptions βž–
OptionalEffectTiming βž–
PaymentCurrencyAmount βž–
PaymentDetailsBase βž–
PaymentDetailsModifier βž–
PaymentItem βž–
PaymentMethodData βž–
PaymentValidationErrors βž–
PerformanceMarkOptions βž–
PerformanceMeasureOptions βž–
PerformanceObserverInit βž–
PeriodicWaveConstraints βž–
PermissionDescriptor βž–
PositionOptions βž–
PropertyIndexedKeyframes βž–
PublicKeyCredentialCreationOptions βž–
PublicKeyCredentialDescriptor βž–
PublicKeyCredentialEntity βž–
PublicKeyCredentialParameters βž–
PublicKeyCredentialRequestOptions βž–
PushSubscriptionJSON βž–
PushSubscriptionOptionsInit βž–
QueuingStrategyInit βž–
RTCCertificateExpiration βž–
RTCConfiguration βž–
RTCDataChannelInit βž–
RTCDtlsFingerprint βž–
RTCEncodedAudioFrameMetadata βž–
RTCEncodedVideoFrameMetadata βž–
RTCErrorInit βž–
RTCIceCandidateInit βž–
RTCIceServer βž–
RTCLocalSessionDescriptionInit βž–
RTCOfferAnswerOptions βž–
RTCRtcpParameters βž–
RTCRtpCapabilities βž–
RTCRtpCodecCapability βž–
RTCRtpCodecParameters βž–
RTCRtpCodingParameters βž–
RTCRtpContributingSource βž–
RTCRtpHeaderExtensionCapability βž–
RTCRtpHeaderExtensionParameters βž–
RTCRtpParameters βž–
RTCRtpTransceiverInit βž–
RTCSessionDescriptionInit βž–
RTCStats βž–
ReadableStreamGetReaderOptions βž–
RegistrationOptions βž–
RequestInit βž–
ResizeObserverOptions βž–
ResponseInit βž–
RsaOtherPrimesInfo βž–
SVGBoundingBoxOptions βž–
ScrollOptions βž–
ShadowRootInit βž–
ShareData βž–
StaticRangeInit βž–
StorageEstimate βž–
StreamPipeOptions βž–
StructuredSerializeOptions βž–
TextDecodeOptions βž–
TextDecoderOptions βž–
TextEncoderEncodeIntoResult βž–
TouchInit βž–
ULongRange βž–
UnderlyingByteSource βž–
ValidityStateFlags βž–
VideoColorSpaceInit βž–
VideoConfiguration βž–
VideoFrameCallbackMetadata βž–
WebGLContextAttributes βž–
WorkerOptions βž–
WorkletOptions βž–
ANGLE_instanced_arrays βž–
ARIAMixin βž–
AbortController βž–
AbstractRange βž–
AbstractWorker βž–
Animatable βž–
AnimationEffect βž–
AnimationFrameProvider βž–
AnimationTimeline βž–
AudioBuffer βž–
AudioListener βž–
AudioParam βž–
AuthenticatorResponse βž–
BarProp βž–
Blob βž–
Body βž–
CSSRule βž–
CSSRuleList βž–
CSSStyleDeclaration βž–
Cache βž–
CacheStorage βž–
CanvasCompositing βž–
CanvasDrawImage βž–
CanvasDrawPath βž–
CanvasFillStrokeStyles βž–
CanvasFilters βž–
CanvasGradient βž–
CanvasImageData βž–
CanvasImageSmoothing βž–
CanvasPath βž–
CanvasPathDrawingStyles βž–
CanvasPattern βž–
CanvasRect βž–
CanvasShadowStyles βž–
CanvasState βž–
CanvasText βž–
CanvasTextDrawingStyles βž–
CanvasTransform βž–
CanvasUserInterface βž–
ClipboardItem βž–
Credential βž–
CredentialsContainer βž–
Crypto βž–
CryptoKey βž–
CustomElementRegistry βž–
DOMImplementation βž–
DOMMatrixReadOnly βž–
DOMParser βž–
DOMPointReadOnly βž–
DOMQuad βž–
DOMRectList βž–
DOMRectReadOnly βž–
DOMStringList βž–
DOMTokenList βž–
DataTransfer βž–
DataTransferItem βž–
DataTransferItemList βž–
DeviceMotionEventAcceleration βž–
DeviceMotionEventRotationRate βž–
DocumentAndElementEventHandlers βž–
DocumentOrShadowRoot βž–
EXT_blend_minmax βž–
EXT_color_buffer_float βž–
EXT_color_buffer_half_float βž–
EXT_float_blend βž–
EXT_frag_depth βž–
EXT_sRGB βž–
EXT_shader_texture_lod βž–
EXT_texture_compression_bptc βž–
EXT_texture_compression_rgtc βž–
EXT_texture_filter_anisotropic βž–
EXT_texture_norm16 βž–
ElementCSSInlineStyle βž–
ElementContentEditable βž–
Event βž–
EventCounts βž–
EventListener βž–
EventListenerObject βž–
EventTarget βž–
External βž–
FileList βž–
FileSystem βž–
FileSystemDirectoryReader βž–
FileSystemEntry βž–
FileSystemHandle βž–
FontFace βž–
FontFaceSource βž–
FormData βž–
Gamepad βž–
GamepadButton βž–
GamepadHapticActuator βž–
GenericTransformStream βž–
Geolocation βž–
GeolocationCoordinates βž–
GeolocationPosition βž–
GeolocationPositionError βž–
GlobalEventHandlers βž–
Headers βž–
History βž–
IDBCursor βž–
IDBFactory βž–
IDBIndex βž–
IDBKeyRange βž–
IDBObjectStore βž–
IdleDeadline βž–
ImageBitmap βž–
ImageBitmapRenderingContext βž–
ImageData βž–
InnerHTML βž–
IntersectionObserver βž–
IntersectionObserverEntry βž–
KHR_parallel_shader_compile βž–
LinkStyle βž–
Location βž–
Lock βž–
LockManager βž–
MediaCapabilities βž–
MediaDeviceInfo βž–
MediaError βž–
MediaKeySystemAccess βž–
MediaKeys βž–
MediaList βž–
MediaMetadata βž–
MediaSession βž–
MessageChannel βž–
MimeType βž–
MimeTypeArray βž–
MutationObserver βž–
MutationRecord βž–
NavigationPreloadManager βž–
NavigatorAutomationInformation βž–
NavigatorConcurrentHardware βž–
NavigatorContentUtils βž–
NavigatorCookies βž–
NavigatorID βž–
NavigatorLanguage βž–
NavigatorLocks βž–
NavigatorOnLine βž–
NavigatorPlugins βž–
NavigatorStorage βž–
NodeIterator βž–
NodeList βž–
NonDocumentTypeChildNode βž–
NonElementParentNode βž–
OES_draw_buffers_indexed βž–
OES_element_index_uint βž–
OES_standard_derivatives βž–
OES_texture_float βž–
OES_texture_float_linear βž–
OES_texture_half_float βž–
OES_texture_half_float_linear βž–
OES_vertex_array_object βž–
OVR_multiview2 βž–
PerformanceEntry βž–
PerformanceNavigation βž–
PerformanceObserver βž–
PerformanceObserverEntryList βž–
PerformanceServerTiming βž–
PerformanceTiming βž–
PeriodicWave βž–
Permissions βž–
Plugin βž–
PluginArray βž–
PushManager βž–
PushSubscription βž–
PushSubscriptionOptions βž–
RTCCertificate βž–
RTCEncodedAudioFrame βž–
RTCEncodedVideoFrame βž–
RTCIceCandidate βž–
RTCRtpReceiver βž–
RTCRtpSender βž–
RTCRtpTransceiver βž–
RTCSessionDescription βž–
RTCStatsReport βž–
ReadableByteStreamController βž–
ReadableStreamBYOBRequest βž–
ReadableStreamGenericReader βž–
ResizeObserver βž–
ResizeObserverEntry βž–
ResizeObserverSize βž–
SVGAngle βž–
SVGAnimatedAngle βž–
SVGAnimatedBoolean βž–
SVGAnimatedEnumeration βž–
SVGAnimatedInteger βž–
SVGAnimatedLength βž–
SVGAnimatedLengthList βž–
SVGAnimatedNumber βž–
SVGAnimatedNumberList βž–
SVGAnimatedPoints βž–
SVGAnimatedPreserveAspectRatio βž–
SVGAnimatedRect βž–
SVGAnimatedString βž–
SVGAnimatedTransformList βž–
SVGFilterPrimitiveStandardAttributes βž–
SVGFitToViewBox βž–
SVGLength βž–
SVGLengthList βž–
SVGNumber βž–
SVGNumberList βž–
SVGPointList βž–
SVGPreserveAspectRatio βž–
SVGStringList βž–
SVGTests βž–
SVGTransform βž–
SVGTransformList βž–
SVGURIReference βž–
SVGUnitTypes βž–
Screen βž–
Selection βž–
Slottable βž–
SpeechRecognitionAlternative βž–
SpeechRecognitionResult βž–
SpeechRecognitionResultList βž–
SpeechSynthesisVoice βž–
Storage βž–
StorageManager βž–
StyleMedia βž–
StyleSheet βž–
StyleSheetList βž–
SubtleCrypto βž–
TextDecoderCommon βž–
TextEncoderCommon βž–
TextMetrics βž–
TextTrackCueList βž–
TimeRanges βž–
Touch βž–
TouchList βž–
TreeWalker βž–
URL βž–
URLSearchParams βž–
VTTRegion βž–
ValidityState βž–
VideoColorSpace βž–
VideoPlaybackQuality βž–
WEBGL_color_buffer_float βž–
WEBGL_compressed_texture_astc βž–
WEBGL_compressed_texture_etc βž–
WEBGL_compressed_texture_etc1 βž–
WEBGL_compressed_texture_s3tc βž–
WEBGL_compressed_texture_s3tc_srgb βž–
WEBGL_debug_renderer_info βž–
WEBGL_debug_shaders βž–
WEBGL_depth_texture βž–
WEBGL_draw_buffers βž–
WEBGL_lose_context βž–
WEBGL_multi_draw βž–
WebGL2RenderingContextBase βž–
WebGL2RenderingContextOverloads βž–
WebGLActiveInfo βž–
WebGLBuffer βž–
WebGLFramebuffer βž–
WebGLProgram βž–
WebGLQuery βž–
WebGLRenderbuffer βž–
WebGLRenderingContextBase βž–
WebGLRenderingContextOverloads βž–
WebGLSampler βž–
WebGLShader βž–
WebGLShaderPrecisionFormat βž–
WebGLSync βž–
WebGLTexture βž–
WebGLTransformFeedback βž–
WebGLUniformLocation βž–
WebGLVertexArrayObject βž–
WebGLVertexArrayObjectOES βž–
WindowEventHandlers βž–
WindowLocalStorage βž–
WindowOrWorkerGlobalScope βž–
WindowSessionStorage βž–
Worklet βž–
WritableStreamDefaultController βž–
XMLSerializer βž–
XPathEvaluatorBase βž–
XPathExpression βž–
XPathResult βž–
XSLTProcessor βž–
BlobCallback βž–
CustomElementConstructor βž–
DecodeErrorCallback βž–
DecodeSuccessCallback βž–
ErrorCallback βž–
FileCallback βž–
FileSystemEntriesCallback βž–
FileSystemEntryCallback βž–
FrameRequestCallback βž–
FunctionStringCallback βž–
IdleRequestCallback βž–
IntersectionObserverCallback βž–
LockGrantedCallback βž–
MediaSessionActionHandler βž–
MutationCallback βž–
NotificationPermissionCallback βž–
OnBeforeUnloadEventHandlerNonNull βž–
OnErrorEventHandlerNonNull βž–
PerformanceObserverCallback βž–
PositionCallback βž–
PositionErrorCallback βž–
RTCPeerConnectionErrorCallback βž–
RTCSessionDescriptionCallback βž–
RemotePlaybackAvailabilityCallback βž–
ResizeObserverCallback βž–
UnderlyingSinkAbortCallback βž–
UnderlyingSinkCloseCallback βž–
UnderlyingSinkStartCallback βž–
UnderlyingSourceCancelCallback βž–
VideoFrameRequestCallback βž–
VoidFunction βž–
AddEventListenerOptions βž–
AesCbcParams βž–
AesCtrParams βž–
AesDerivedKeyParams βž–
AesGcmParams βž–
AesKeyAlgorithm βž–
AesKeyGenParams βž–
AnalyserOptions βž–
AnimationEventInit βž–
AnimationPlaybackEventInit βž–
AudioProcessingEventInit βž–
AudioWorkletNodeOptions βž–
BiquadFilterOptions βž–
ChannelMergerOptions βž–
ChannelSplitterOptions βž–
ClipboardEventInit βž–
CloseEventInit βž–
CompositionEventInit βž–
ComputedEffectTiming βž–
ConstrainDoubleRange βž–
ConstrainULongRange βž–
ConvolverOptions βž–
DOMMatrixInit βž–
DelayOptions βž–
DeviceMotionEventInit βž–
DeviceOrientationEventInit βž–
DragEventInit βž–
DynamicsCompressorOptions βž–
EcKeyAlgorithm βž–
EcKeyGenParams βž–
EcKeyImportParams βž–
EcdhKeyDeriveParams βž–
EcdsaParams βž–
ErrorEventInit βž–
EventModifierInit βž–
FilePropertyBag βž–
FocusEventInit βž–
FontFaceSetLoadEventInit βž–
FormDataEventInit βž–
GainOptions βž–
GamepadEventInit βž–
HashChangeEventInit βž–
HkdfParams βž–
HmacImportParams βž–
HmacKeyAlgorithm βž–
HmacKeyGenParams βž–
IDBVersionChangeEventInit βž–
IIRFilterOptions βž–
InputEventInit βž–
KeyboardEventInit βž–
KeyframeAnimationOptions βž–
KeyframeEffectOptions βž–
MediaCapabilitiesDecodingInfo βž–
MediaCapabilitiesEncodingInfo βž–
MediaDecodingConfiguration βž–
MediaEncodingConfiguration βž–
MediaEncryptedEventInit βž–
MediaKeyMessageEventInit βž–
MediaQueryListEventInit βž–
MediaStreamTrackEventInit βž–
MediaTrackConstraints βž–
MouseEventInit βž–
MultiCacheQueryOptions βž–
OfflineAudioCompletionEventInit βž–
OscillatorOptions βž–
PageTransitionEventInit βž–
PannerOptions βž–
PaymentDetailsInit βž–
PaymentDetailsUpdate βž–
PaymentMethodChangeEventInit βž–
PaymentRequestUpdateEventInit βž–
Pbkdf2Params βž–
PeriodicWaveOptions βž–
PictureInPictureEventInit βž–
PointerEventInit βž–
PopStateEventInit βž–
ProgressEventInit βž–
PromiseRejectionEventInit βž–
PublicKeyCredentialRpEntity βž–
PublicKeyCredentialUserEntity βž–
RTCAnswerOptions βž–
RTCDTMFToneChangeEventInit βž–
RTCDataChannelEventInit βž–
RTCErrorEventInit βž–
RTCIceCandidatePairStats βž–
RTCInboundRtpStreamStats βž–
RTCOfferOptions βž–
RTCOutboundRtpStreamStats βž–
RTCPeerConnectionIceErrorEventInit βž–
RTCPeerConnectionIceEventInit βž–
RTCReceivedRtpStreamStats βž–
RTCRtpEncodingParameters βž–
RTCRtpReceiveParameters βž–
RTCRtpSendParameters βž–
RTCRtpStreamStats βž–
RTCRtpSynchronizationSource βž–
RTCSentRtpStreamStats βž–
RTCTrackEventInit βž–
RTCTransportStats βž–
RsaHashedImportParams βž–
RsaHashedKeyAlgorithm βž–
RsaHashedKeyGenParams βž–
RsaKeyAlgorithm βž–
RsaKeyGenParams βž–
RsaOaepParams βž–
RsaPssParams βž–
ScrollIntoViewOptions βž–
ScrollToOptions βž–
SecurityPolicyViolationEventInit βž–
SpeechSynthesisErrorEventInit βž–
SpeechSynthesisEventInit βž–
StereoPannerOptions βž–
StorageEventInit βž–
SubmitEventInit βž–
TouchEventInit βž–
TrackEventInit βž–
TransitionEventInit βž–
UIEventInit βž–
WaveShaperOptions βž–
WebGLContextEventInit βž–
WheelEventInit βž–
WindowPostMessageOptions βž–
AbortSignal βž–
AnalyserNode βž–
Animation βž–
AnimationEvent βž–
AnimationPlaybackEvent βž–
Attr βž–
AudioBufferSourceNode βž–
AudioContext βž–
AudioDestinationNode βž–
AudioNode βž–
AudioProcessingEvent βž–
AudioScheduledSourceNode βž–
AudioWorklet βž–
AudioWorkletNode βž–
AuthenticatorAssertionResponse βž–
AuthenticatorAttestationResponse βž–
BaseAudioContext βž–
BeforeUnloadEvent βž–
BiquadFilterNode βž–
BlobEvent βž–
BroadcastChannel βž–
CDATASection βž–
CSSAnimation βž–
CSSConditionRule βž–
CSSContainerRule βž–
CSSCounterStyleRule βž–
CSSFontFaceRule βž–
CSSFontPaletteValuesRule βž–
CSSGroupingRule βž–
CSSImportRule βž–
CSSKeyframeRule βž–
CSSKeyframesRule βž–
CSSLayerBlockRule βž–
CSSLayerStatementRule βž–
CSSMediaRule βž–
CSSNamespaceRule βž–
CSSPageRule βž–
CSSStyleRule βž–
CSSStyleSheet βž–
CSSSupportsRule βž–
CSSTransition βž–
CanvasCaptureMediaStreamTrack βž–
ChannelMergerNode βž–
ChannelSplitterNode βž–
ChildNode βž–
ClientRect βž–
Clipboard βž–
ClipboardEvent βž–
CloseEvent βž–
Comment βž–
CompositionEvent βž–
ConstantSourceNode βž–
ConvolverNode βž–
CountQueuingStrategy βž–
DOMMatrix βž–
DOMPoint βž–
DOMRect βž–
DelayNode βž–
DeviceMotionEvent βž–
DeviceOrientationEvent βž–
DocumentTimeline βž–
DragEvent βž–
DynamicsCompressorNode βž–
ElementInternals βž–
ErrorEvent βž–
EventSource βž–
File βž–
FileReader βž–
FileSystemDirectoryEntry βž–
FileSystemDirectoryHandle βž–
FileSystemFileEntry βž–
FileSystemFileHandle βž–
FocusEvent βž–
FontFaceSet βž–
FontFaceSetLoadEvent βž–
FormDataEvent βž–
GainNode βž–
GamepadEvent βž–
HashChangeEvent βž–
IDBCursorWithValue βž–
IDBDatabase βž–
IDBTransaction βž–
IDBVersionChangeEvent βž–
IIRFilterNode βž–
InputDeviceInfo βž–
InputEvent βž–
KeyboardEvent βž–
KeyframeEffect βž–
MediaDevices βž–
MediaElementAudioSourceNode βž–
MediaEncryptedEvent βž–
MediaKeyMessageEvent βž–
MediaKeySession βž–
MediaQueryList βž–
MediaQueryListEvent βž–
MediaRecorder βž–
MediaSource βž–
MediaStream βž–
MediaStreamAudioDestinationNode βž–
MediaStreamAudioSourceNode βž–
MediaStreamTrack βž–
MediaStreamTrackEvent βž–
MessagePort βž–
MouseEvent βž–
MutationEvent βž–
Node βž–
Notification βž–
OfflineAudioCompletionEvent βž–
OfflineAudioContext βž–
OffscreenCanvas βž–
OscillatorNode βž–
OverconstrainedError βž–
PageTransitionEvent βž–
PannerNode βž–
ParentNode βž–
Path2D βž–
PaymentMethodChangeEvent βž–
PaymentRequest βž–
PaymentRequestUpdateEvent βž–
PaymentResponse βž–
Performance βž–
PerformanceEventTiming βž–
PerformanceMark βž–
PerformanceMeasure βž–
PerformanceNavigationTiming βž–
PerformancePaintTiming βž–
PerformanceResourceTiming βž–
PermissionStatus βž–
PictureInPictureEvent βž–
PictureInPictureWindow βž–
PointerEvent βž–
PopStateEvent βž–
PromiseRejectionEvent βž–
PublicKeyCredential βž–
RTCDTMFSender βž–
RTCDTMFToneChangeEvent βž–
RTCDataChannel βž–
RTCDataChannelEvent βž–
RTCDtlsTransport βž–
RTCError βž–
RTCErrorEvent βž–
RTCIceTransport βž–
RTCPeerConnection βž–
RTCPeerConnectionIceErrorEvent βž–
RTCPeerConnectionIceEvent βž–
RTCSctpTransport βž–
RTCTrackEvent βž–
RadioNodeList βž–
Range βž–
ReadableStreamBYOBReader βž–
RemotePlayback βž–
Request βž–
Response βž–
SVGAnimateElement βž–
SVGAnimateMotionElement βž–
SVGAnimateTransformElement βž–
SVGCircleElement βž–
SVGClipPathElement βž–
SVGComponentTransferFunctionElement βž–
SVGDefsElement βž–
SVGDescElement βž–
SVGEllipseElement βž–
SVGFEDistantLightElement βž–
SVGFEFuncAElement βž–
SVGFEFuncBElement βž–
SVGFEFuncGElement βž–
SVGFEFuncRElement βž–
SVGFEMergeNodeElement βž–
SVGFEPointLightElement βž–
SVGFESpotLightElement βž–
SVGForeignObjectElement βž–
SVGGElement βž–
SVGGeometryElement βž–
SVGLineElement βž–
SVGLinearGradientElement βž–
SVGMaskElement βž–
SVGMetadataElement βž–
SVGPathElement βž–
SVGRadialGradientElement βž–
SVGRectElement βž–
SVGSetElement βž–
SVGStopElement βž–
SVGSwitchElement βž–
SVGTSpanElement βž–
SVGTextContentElement βž–
SVGTextElement βž–
SVGTextPositioningElement βž–
SVGTitleElement βž–
ScreenOrientation βž–
ScriptProcessorNode βž–
SecurityPolicyViolationEvent βž–
ServiceWorkerContainer βž–
ServiceWorkerRegistration βž–
SourceBuffer βž–
SourceBufferList βž–
SpeechSynthesis βž–
SpeechSynthesisErrorEvent βž–
SpeechSynthesisEvent βž–
SpeechSynthesisUtterance βž–
StaticRange βž–
StereoPannerNode βž–
StorageEvent βž–
SubmitEvent βž–
TextDecoder βž–
TextEncoder βž–
TextTrack βž–
TextTrackCue βž–
TextTrackList βž–
TouchEvent βž–
TrackEvent βž–
TransitionEvent βž–
UIEvent βž–
VTTCue βž–
VisualViewport βž–
WaveShaperNode βž–
WebGLContextEvent βž–
WebSocket βž–
WheelEvent βž–
XMLDocument βž–
XMLHttpRequest βž–
XMLHttpRequestEventTarget βž–
XMLHttpRequestUpload βž–
XPathEvaluator βž–

HTML (80 methods)

Name Tests
HTMLDirectoryElement βž–
HTMLDocument βž–
HTMLFontElement βž–
HTMLFrameElement βž–
HTMLMarqueeElement βž–
HTMLParamElement βž–
HTMLTableDataCellElement βž–
HTMLTableHeaderCellElement βž–
HTMLAllCollection βž–
HTMLCollectionBase βž–
HTMLHyperlinkElementUtils βž–
HTMLOrSVGElement βž–
HTMLAnchorElement βž–
HTMLAreaElement βž–
HTMLAudioElement βž–
HTMLBRElement βž–
HTMLBaseElement βž–
HTMLBodyElement βž–
HTMLButtonElement βž–
HTMLCanvasElement βž–
HTMLCollection βž–
HTMLDListElement βž–
HTMLDataElement βž–
HTMLDataListElement βž–
HTMLDetailsElement βž–
HTMLDialogElement βž–
HTMLDivElement βž–
HTMLElement βž–
HTMLEmbedElement βž–
HTMLFieldSetElement βž–
HTMLFormControlsCollection βž–
HTMLFormElement βž–
HTMLHRElement βž–
HTMLHeadElement βž–
HTMLHeadingElement βž–
HTMLHtmlElement βž–
HTMLIFrameElement βž–
HTMLImageElement βž–
HTMLInputElement βž–
HTMLLIElement βž–
HTMLLabelElement βž–
HTMLLegendElement βž–
HTMLLinkElement βž–
HTMLMapElement βž–
HTMLMediaElement βž–
HTMLMenuElement βž–
HTMLMetaElement βž–
HTMLMeterElement βž–
HTMLModElement βž–
HTMLOListElement βž–
HTMLObjectElement βž–
HTMLOptGroupElement βž–
HTMLOptionElement βž–
HTMLOptionsCollection βž–
HTMLOutputElement βž–
HTMLParagraphElement βž–
HTMLPictureElement βž–
HTMLPreElement βž–
HTMLProgressElement βž–
HTMLQuoteElement βž–
HTMLScriptElement βž–
HTMLSelectElement βž–
HTMLSlotElement βž–
HTMLSourceElement βž–
HTMLSpanElement βž–
HTMLStyleElement βž–
HTMLTableCaptionElement βž–
HTMLTableCellElement βž–
HTMLTableColElement βž–
HTMLTableElement βž–
HTMLTableRowElement βž–
HTMLTableSectionElement βž–
HTMLTemplateElement βž–
HTMLTextAreaElement βž–
HTMLTimeElement βž–
HTMLTitleElement βž–
HTMLTrackElement βž–
HTMLUListElement βž–
HTMLUnknownElement βž–
HTMLVideoElement βž–

Back to table of contents

πŸ‘€ Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Add your changes: git add .
  4. Commit your changes: git commit -am 'Add some feature'
  5. Push to the branch: git push origin my-new-feature
  6. Submit a pull request 😎

✍️ Authors

See also the list of contributors who participated in this project.

πŸ“œ License

MIT License Β© Karbashevskyi