
Security News
Risky Biz Podcast: AI Agents Are Raising the Stakes for Software Supply Chain Security
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.
@john-yuan/utils
Advanced tools
The basic utils for javascript. This library will keep the utils as small as possible. You can import the module you want to use on demand. Here is an example:
var isArray = require('@john-yuan/utils/isArray');
if (!isArray(it)) {
throw new TypeError('it is not an array');
}
npm i @john-yuan/utils
url {string}Check whether the url is absolute url. Returns true if the url is abosolute, otherwise false is returned.
it {any}Check whether the variable is an instance of Array. Returns true if the variable is an instance of Array, otherwise false is returned.
it {any}Check whether the variable is a function. Returns true if the variable is a function, otherwise false is returned.
it {any}Check whether the variable is a plain object. Returns true if the variable is a plain object, otherwise false is returned.
target {Object}source {Object}Copy any non-undefined values of source to target and overwrites the corresponding original values. This function will modify the target object. Returns the modified target object.
str {string}Removes the leading and trailing white space and line terminator characters from a string. If str is null or undefined, it is treated as an empty string. If str is not a string, it will be converted to a string first. This function retruns the trimed string.
FAQs
Basic utils.
We found that @john-yuan/utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.