Skip to content

Commit 7742dcf

Browse files
Update exemplar.js
1 parent f6b496f commit 7742dcf

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

exercises/concept/recycling-robot/.meta/exemplar.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class ElectronicDevice {
1010
/**
1111
* Checks if input is a boolean.
1212
*
13-
* @param {any} value
13+
* @param {unknown} value
1414
* @returns {boolean} whether the input is a boolean
1515
*/
1616
export function isBoolean(value) {
@@ -20,7 +20,7 @@ export function isBoolean(value) {
2020
/**
2121
* Checks if input is a finite number or bigint.
2222
*
23-
* @param {any} value
23+
* @param {unknown} value
2424
* @returns {boolean} whether the input is a finite number or bigint
2525
*/
2626
export function isNumber(value) {
@@ -34,7 +34,7 @@ export function isNumber(value) {
3434
/**
3535
* Checks if a value is an object.
3636
*
37-
* @param {any} value
37+
* @param {unknown} value
3838
* @returns {boolean} whether the input is an object.
3939
*/
4040
export function isObject(value) {
@@ -44,7 +44,7 @@ export function isObject(value) {
4444
/**
4545
* Checks if a value is a numeric string.
4646
*
47-
* @param {any} value
47+
* @param {unknown} value
4848
* @returns {boolean} whether the input is a numeric string.
4949
*/
5050
export function isNumericString(value) {
@@ -69,7 +69,7 @@ export function isElectronic(object) {
6969
/**
7070
* Checks if a value is a non empty array.
7171
*
72-
* @param {any} value
72+
* @param {unknown} value
7373
* @returns {boolean} whether the input is a non empty array.
7474
*/
7575
export function isNonEmptyArray(value) {
@@ -79,7 +79,7 @@ export function isNonEmptyArray(value) {
7979
/**
8080
* Checks if a value is an empty array.
8181
*
82-
* @param {any} value
82+
* @param {unknown} value
8383
* @returns {boolean} whether the input is an empty array.
8484
*/
8585
export function isEmptyArray(value) {

0 commit comments

Comments
 (0)