Skip to content

💃 Just my drafts of some utilities made to extend introspection in JavaScript :trollface:

License

Notifications You must be signed in to change notification settings

duboviy/inspector-freimut.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo inspector-freimut.js

Codacy Badge Open Source Love PRs & Issues Welcome Awesome

Summary

Utilities made to extend introspection in js

Basic usage examples

isFunction(func), isArray(arr), isObject(obj), isString(str)

Predicate functions (returns true if a given variable matches):

$u.isFunction(function(){});
//true
$u.isFunction('');
//false

$u.isArray([]);
//true
$u.isArray('');
//false

$u.isObject({});
//true
$u.isObject('');
//false

$u.isString('');
//true
$u.isString({});
//false

keys(obj)

return keys of given object:

var obj = {name: '1',value: '2', some: '3'};
$u.keys(obj);
//["name", "value", "some"]

values(obj)

return values of given object:

var obj = {name: '1',value: '2', some: '3'};
$u.values(obj);
//["1", "2", "3"]

Tests

To run tests use tests/index.html

You should see following test results in your browser: test_results

License

MIT licensed library. See LICENSE for details.

Contributing

If you have suggestions for improving the inspector-freimut.js, please open an issue or pull request on GitHub.

She looks at you like ... like your code need to be inspected ASAP 😄

Badges

forthebadge forthebadge forthebadge forthebadge

forthebadge forthebadge forthebadge forthebadge

Open Source Love

forthebadge

About

💃 Just my drafts of some utilities made to extend introspection in JavaScript :trollface:

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published