Skip to content

Commit 39b59e6

Browse files
docs(README.md): update
1 parent f990dd5 commit 39b59e6

File tree

2 files changed

+70
-70
lines changed

2 files changed

+70
-70
lines changed

README.md

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -706,20 +706,20 @@ import { isNumberObject } from '@angular-package/type';
706706
*/
707707
const NUMBER: any = 10304050;
708708

709-
/**
710-
* typeof === 'number'
711-
* instanceof Function === false
712-
* instanceof Number === false
713-
* instanceof Object === false
714-
*/
709+
/**
710+
* typeof === 'number'
711+
* instanceof Function === false
712+
* instanceof Number === false
713+
* instanceof Object === false
714+
*/
715715
const NUMBER_INSTANCE: any = Number(NUMBER);
716716

717-
/**
718-
* typeof === 'number'
719-
* instanceof Function === false
720-
* instanceof Number === true
721-
* instanceof Object === true
722-
*/
717+
/**
718+
* typeof === 'number'
719+
* instanceof Function === false
720+
* instanceof Number === true
721+
* instanceof Object === true
722+
*/
723723
const NUMBER_NEW_INSTANCE: any = new Number(NUMBER);
724724

725725
isNumberObject(NUMBER); // false
@@ -758,20 +758,20 @@ import { isNumberType } from '@angular-package/type';
758758
*/
759759
const NUMBER: any = 10304050;
760760

761-
/**
762-
* typeof === 'number'
763-
* instanceof Function === false
764-
* instanceof Number === false
765-
* instanceof Object === false
766-
*/
761+
/**
762+
* typeof === 'number'
763+
* instanceof Function === false
764+
* instanceof Number === false
765+
* instanceof Object === false
766+
*/
767767
const NUMBER_INSTANCE: any = Number(NUMBER);
768768

769-
/**
770-
* typeof === 'number'
771-
* instanceof Function === false
772-
* instanceof Number === true
773-
* instanceof Object === true
774-
*/
769+
/**
770+
* typeof === 'number'
771+
* instanceof Function === false
772+
* instanceof Number === true
773+
* instanceof Object === true
774+
*/
775775
const NUMBER_NEW_INSTANCE: any = new Number(NUMBER);
776776

777777
isNumberType(NUMBER); // true
@@ -895,7 +895,7 @@ isObject(OBJECT_ONE, SYMBOL_STRING); // true
895895

896896
### isObjectKey
897897

898-
Use `isObjectKey()` or `is.objectKey()` to check if **any** `value` is an `object` with its own specified keys of the [`Key`][key]. The Function uses [`hasOwnProperty`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty) method to find the key.
898+
Use `isObjectKey()` or `is.objectKey()` to check if **any** `value` is an `object` with its own specified keys of the [`Key`][key]. The function uses [`hasOwnProperty`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty) method to find the key.
899899

900900
```typescript
901901
const isObjectKey: IsObjectKey = <Type extends object>(
@@ -1406,7 +1406,7 @@ const isNotDefined: IsNotDefined = (value: unknown, callback: ResultCallback = r
14061406
| value | `unknown` | An unknown `value` to check |
14071407
| callback | [`ResultCallback`][resultcallback]=[`resultCallback`][callback] | [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
14081408

1409-
The return value is a `boolean` indicating whether or not the `value` is not defined, is `undefined`.
1409+
The **return value** is a `boolean` indicating whether or not the `value` is not defined, is `undefined`.
14101410

14111411
----
14121412

@@ -1424,7 +1424,7 @@ const isNotFunction: IsNotFunction = (value: unknown, callback: ResultCallback =
14241424
| value | `unknown` | An unknown `value` to check |
14251425
| callback | [`ResultCallback`][resultcallback]=[`resultCallback`][callback] | [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
14261426

1427-
The return value is a `boolean` indicating whether or not the `value` is not a `function`.
1427+
The **return value** is a `boolean` indicating whether or not the `value` is not a `function`.
14281428

14291429
----
14301430

@@ -1442,7 +1442,7 @@ const isNotNull: IsNotNull = (value: unknown, callback: ResultCallback = resultC
14421442
| value | `unknown` | An unknown `value` to check |
14431443
| callback | [`ResultCallback`][resultcallback]=[`resultCallback`][callback] | [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
14441444

1445-
The return value is a `boolean` indicating whether or not the `value` is not `null`.
1445+
The **return value** is a `boolean` indicating whether or not the `value` is not `null`.
14461446

14471447
----
14481448

@@ -1465,7 +1465,7 @@ const isNotNumber: IsNotNumber = (value: any, callback: ResultCallback = resultC
14651465
| value | `unknown` | An unknown `value` to check |
14661466
| callback | [`ResultCallback`][resultcallback]=[`resultCallback`][callback] | [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
14671467

1468-
The return value is a `boolean` indicating whether or not the `value` is not a `number`.
1468+
The **return value** is a `boolean` indicating whether or not the `value` is not a `number`.
14691469

14701470
----
14711471

@@ -1483,7 +1483,7 @@ const isNotString: IsNotString = (value: unknown, callback: ResultCallback = res
14831483
| value | `unknown` | An unknown `value` to check |
14841484
| callback | [`ResultCallback`][resultcallback]=[`resultCallback`][callback] | [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
14851485

1486-
The return value is a `boolean` indicating whether or not the `value` is not a `string`.
1486+
The **return value** is a `boolean` indicating whether or not the `value` is not a `string`.
14871487

14881488
----
14891489

@@ -1501,7 +1501,7 @@ const isNotUndefined: IsNotUndefined = (value: unknown, callback: ResultCallback
15011501
| value | `unknown` | An unknown `value` to check |
15021502
| callback | [`ResultCallback`][resultcallback]=[`resultCallback`][callback] | [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
15031503

1504-
The return value is a `boolean` indicating whether or not the `value` is not `undefined`.
1504+
The **return value** is a `boolean` indicating whether or not the `value` is not `undefined`.
15051505

15061506
```typescript
15071507
// Example usage with the problem
@@ -1634,7 +1634,7 @@ const guardFunction: GuardFunction = (value: Func, callback?: ResultCallback): v
16341634
| value | [`Func`](#func) | A [`Func`](#func) type `value` to guard |
16351635
| callback? | [`ResultCallback`][resultcallback] | Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
16361636

1637-
The return value is a `boolean` indicating whether or not the `value` is a [`Func`](#func).
1637+
The **return value** is a `boolean` indicating whether or not the `value` is a [`Func`](#func).
16381638

16391639
[Example usage on playground][guard-function]
16401640

@@ -1769,7 +1769,7 @@ const guardPrimitive: GuardPrimitive =
17691769
| type | [`Primitives`](#primitives) | A `string` type from the [`Primitives`](#primitives) to check the `value` |
17701770
| callback? | [`ResultCallback`][resultcallback] | Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
17711771

1772-
The return value is a `boolean` indicating whether or not the `value` is the [`Primitive`](#primitive) from the `type`.
1772+
The **return value** is a `boolean` indicating whether or not the `value` is the [`Primitive`](#primitive) from the `type`.
17731773

17741774
[Example usage on playground][guard-primitive]
17751775

@@ -1789,7 +1789,7 @@ const guardString: GuardString = (value: string, callback?: ResultCallback): val
17891789
| value | `string` | A `string` type `value` to guard |
17901790
| callback? | [`ResultCallback`][resultcallback] | Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
17911791

1792-
The return value is a `boolean` indicating whether or not the `value` is a `string`.
1792+
The **return value** is a `boolean` indicating whether or not the `value` is a `string`.
17931793

17941794
[Example usage on playground][guard-string]
17951795

@@ -1828,7 +1828,7 @@ const guardType: GuardType = <T extends Type>(value: T, type: Types<T>, callback
18281828
| type | [`Types<T>`](#types) | A `string` or generic [`Constructor`](#constructor) type from the [`Types`](#types) to check the `value` |
18291829
| callback? | [`ResultCallback`][resultcallback] | Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
18301830

1831-
The return value is a `boolean` indicating whether or not the `value` is a `type` from the [`Types`](#types).
1831+
The **return value** is a `boolean` indicating whether or not the `value` is a `type` from the [`Types`](#types).
18321832

18331833
[Example usage on playground][guard-type]
18341834

packages/type/README.md

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -706,20 +706,20 @@ import { isNumberObject } from '@angular-package/type';
706706
*/
707707
const NUMBER: any = 10304050;
708708

709-
/**
710-
* typeof === 'number'
711-
* instanceof Function === false
712-
* instanceof Number === false
713-
* instanceof Object === false
714-
*/
709+
/**
710+
* typeof === 'number'
711+
* instanceof Function === false
712+
* instanceof Number === false
713+
* instanceof Object === false
714+
*/
715715
const NUMBER_INSTANCE: any = Number(NUMBER);
716716

717-
/**
718-
* typeof === 'number'
719-
* instanceof Function === false
720-
* instanceof Number === true
721-
* instanceof Object === true
722-
*/
717+
/**
718+
* typeof === 'number'
719+
* instanceof Function === false
720+
* instanceof Number === true
721+
* instanceof Object === true
722+
*/
723723
const NUMBER_NEW_INSTANCE: any = new Number(NUMBER);
724724

725725
isNumberObject(NUMBER); // false
@@ -758,20 +758,20 @@ import { isNumberType } from '@angular-package/type';
758758
*/
759759
const NUMBER: any = 10304050;
760760

761-
/**
762-
* typeof === 'number'
763-
* instanceof Function === false
764-
* instanceof Number === false
765-
* instanceof Object === false
766-
*/
761+
/**
762+
* typeof === 'number'
763+
* instanceof Function === false
764+
* instanceof Number === false
765+
* instanceof Object === false
766+
*/
767767
const NUMBER_INSTANCE: any = Number(NUMBER);
768768

769-
/**
770-
* typeof === 'number'
771-
* instanceof Function === false
772-
* instanceof Number === true
773-
* instanceof Object === true
774-
*/
769+
/**
770+
* typeof === 'number'
771+
* instanceof Function === false
772+
* instanceof Number === true
773+
* instanceof Object === true
774+
*/
775775
const NUMBER_NEW_INSTANCE: any = new Number(NUMBER);
776776

777777
isNumberType(NUMBER); // true
@@ -895,7 +895,7 @@ isObject(OBJECT_ONE, SYMBOL_STRING); // true
895895

896896
### isObjectKey
897897

898-
Use `isObjectKey()` or `is.objectKey()` to check if **any** `value` is an `object` with its own specified keys of the [`Key`][key]. The Function uses [`hasOwnProperty`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty) method to find the key.
898+
Use `isObjectKey()` or `is.objectKey()` to check if **any** `value` is an `object` with its own specified keys of the [`Key`][key]. The function uses [`hasOwnProperty`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty) method to find the key.
899899

900900
```typescript
901901
const isObjectKey: IsObjectKey = <Type extends object>(
@@ -1406,7 +1406,7 @@ const isNotDefined: IsNotDefined = (value: unknown, callback: ResultCallback = r
14061406
| value | `unknown` | An unknown `value` to check |
14071407
| callback | [`ResultCallback`][resultcallback]=[`resultCallback`][callback] | [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
14081408

1409-
The return value is a `boolean` indicating whether or not the `value` is not defined, is `undefined`.
1409+
The **return value** is a `boolean` indicating whether or not the `value` is not defined, is `undefined`.
14101410

14111411
----
14121412

@@ -1424,7 +1424,7 @@ const isNotFunction: IsNotFunction = (value: unknown, callback: ResultCallback =
14241424
| value | `unknown` | An unknown `value` to check |
14251425
| callback | [`ResultCallback`][resultcallback]=[`resultCallback`][callback] | [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
14261426

1427-
The return value is a `boolean` indicating whether or not the `value` is not a `function`.
1427+
The **return value** is a `boolean` indicating whether or not the `value` is not a `function`.
14281428

14291429
----
14301430

@@ -1442,7 +1442,7 @@ const isNotNull: IsNotNull = (value: unknown, callback: ResultCallback = resultC
14421442
| value | `unknown` | An unknown `value` to check |
14431443
| callback | [`ResultCallback`][resultcallback]=[`resultCallback`][callback] | [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
14441444

1445-
The return value is a `boolean` indicating whether or not the `value` is not `null`.
1445+
The **return value** is a `boolean` indicating whether or not the `value` is not `null`.
14461446

14471447
----
14481448

@@ -1465,7 +1465,7 @@ const isNotNumber: IsNotNumber = (value: any, callback: ResultCallback = resultC
14651465
| value | `unknown` | An unknown `value` to check |
14661466
| callback | [`ResultCallback`][resultcallback]=[`resultCallback`][callback] | [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
14671467

1468-
The return value is a `boolean` indicating whether or not the `value` is not a `number`.
1468+
The **return value** is a `boolean` indicating whether or not the `value` is not a `number`.
14691469

14701470
----
14711471

@@ -1483,7 +1483,7 @@ const isNotString: IsNotString = (value: unknown, callback: ResultCallback = res
14831483
| value | `unknown` | An unknown `value` to check |
14841484
| callback | [`ResultCallback`][resultcallback]=[`resultCallback`][callback] | [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
14851485

1486-
The return value is a `boolean` indicating whether or not the `value` is not a `string`.
1486+
The **return value** is a `boolean` indicating whether or not the `value` is not a `string`.
14871487

14881488
----
14891489

@@ -1501,7 +1501,7 @@ const isNotUndefined: IsNotUndefined = (value: unknown, callback: ResultCallback
15011501
| value | `unknown` | An unknown `value` to check |
15021502
| callback | [`ResultCallback`][resultcallback]=[`resultCallback`][callback] | [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
15031503

1504-
The return value is a `boolean` indicating whether or not the `value` is not `undefined`.
1504+
The **return value** is a `boolean` indicating whether or not the `value` is not `undefined`.
15051505

15061506
```typescript
15071507
// Example usage with the problem
@@ -1634,7 +1634,7 @@ const guardFunction: GuardFunction = (value: Func, callback?: ResultCallback): v
16341634
| value | [`Func`](#func) | A [`Func`](#func) type `value` to guard |
16351635
| callback? | [`ResultCallback`][resultcallback] | Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
16361636

1637-
The return value is a `boolean` indicating whether or not the `value` is a [`Func`](#func).
1637+
The **return value** is a `boolean` indicating whether or not the `value` is a [`Func`](#func).
16381638

16391639
[Example usage on playground][guard-function]
16401640

@@ -1769,7 +1769,7 @@ const guardPrimitive: GuardPrimitive =
17691769
| type | [`Primitives`](#primitives) | A `string` type from the [`Primitives`](#primitives) to check the `value` |
17701770
| callback? | [`ResultCallback`][resultcallback] | Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
17711771

1772-
The return value is a `boolean` indicating whether or not the `value` is the [`Primitive`](#primitive) from the `type`.
1772+
The **return value** is a `boolean` indicating whether or not the `value` is the [`Primitive`](#primitive) from the `type`.
17731773

17741774
[Example usage on playground][guard-primitive]
17751775

@@ -1789,7 +1789,7 @@ const guardString: GuardString = (value: string, callback?: ResultCallback): val
17891789
| value | `string` | A `string` type `value` to guard |
17901790
| callback? | [`ResultCallback`][resultcallback] | Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
17911791

1792-
The return value is a `boolean` indicating whether or not the `value` is a `string`.
1792+
The **return value** is a `boolean` indicating whether or not the `value` is a `string`.
17931793

17941794
[Example usage on playground][guard-string]
17951795

@@ -1828,7 +1828,7 @@ const guardType: GuardType = <T extends Type>(value: T, type: Types<T>, callback
18281828
| type | [`Types<T>`](#types) | A `string` or generic [`Constructor`](#constructor) type from the [`Types`](#types) to check the `value` |
18291829
| callback? | [`ResultCallback`][resultcallback] | Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error` |
18301830

1831-
The return value is a `boolean` indicating whether or not the `value` is a `type` from the [`Types`](#types).
1831+
The **return value** is a `boolean` indicating whether or not the `value` is a `type` from the [`Types`](#types).
18321832

18331833
[Example usage on playground][guard-type]
18341834

0 commit comments

Comments
 (0)