https://github.com/suyesh/get-methods
https://github.com/suyesh/get-methods
javascript javascript-methods javascript-properties
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/suyesh/get-methods
- Owner: suyesh
- Created: 2018-07-27T13:41:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-27T14:22:55.000Z (over 7 years ago)
- Last Synced: 2025-03-05T09:48:21.346Z (about 1 year ago)
- Topics: javascript, javascript-methods, javascript-properties
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This was created to test creating npm packages. You can use it anyways :)
## Usage
```
import { methods, properties } from 'get-methods'
console.log(methods('string'));
console.log(properties('string'));
[ 'length',
'constructor',
'anchor',
'big',
'blink',
'bold',
'charAt',
'charCodeAt',
'codePointAt',
'concat',
'endsWith',
'fontcolor',
'fontsize',
'fixed',
'includes',
'indexOf',
'italics',
'lastIndexOf',
'link',
'localeCompare',
'match',
'normalize',
'padEnd',
'padStart',
'repeat',
'replace',
'search',
'slice',
'small',
'split',
'strike',
'sub',
'substr',
'substring',
'sup',
'startsWith',
'toString',
'trim',
'trimLeft',
'trimRight',
'toLowerCase',
'toUpperCase',
'valueOf',
'toLocaleLowerCase',
'toLocaleUpperCase',
'trimStart',
'trimEnd' ][ '0', '1', '2', '3', '4', '5', 'length' ]
```