Checks if a value is present.
This function checks if a value is present (i.e., not empty). It uses the isEmpty function to perform the check.
The type of the value.
The value to check.
isPresent("text"); // trueisPresent([1, 2, 3]); // trueisPresent({ a: 1 }); // trueisPresent(""); // falseisPresent([]); // falseisPresent({}); // falseisPresent(new Map()); // falseisPresent(new Set()); // false Copy
isPresent("text"); // trueisPresent([1, 2, 3]); // trueisPresent({ a: 1 }); // trueisPresent(""); // falseisPresent([]); // falseisPresent({}); // falseisPresent(new Map()); // falseisPresent(new Set()); // false
Checks if a value is present.
This function checks if a value is present (i.e., not empty). It uses the isEmpty function to perform the check.