https://github.com/andreasmadsen/indexof-surrounding
Like indexOf but looks at surrounding items
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (5.9%) to scientific vocabulary
Repository
Like indexOf but looks at surrounding items
Basic Info
- Host: GitHub
- Owner: AndreasMadsen
- License: mit
- Language: JavaScript
- Default Branch: master
- Size: 4.88 KB
Statistics
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
indexof-surrounding
Like indexOf but looks at surrounding items
this module was previousely called near
Installation
sheel
npm install indexof-surrounding
Documentation
```JavaScript var near = require('indexof-surrounding');
var list = ['a', 'b', 'b', 'a'];
// The result is just like indexOf near(list, 'a') // 0; near(list, 'c') // -1;
// But you can give it a starting position, and it will also look behind near(list, 'a', 1) // 0; near(list, 'a', 2) // 3;
// Futhermore you can give it an interval (more efficient than doing a slice)
near(list, 'a', 1, [1,2]) // -1
near(list, 'a', 1, [1,Infinity]) // 3
```
License
The software is license under "MIT"
Copyright (c) 2013 Andreas Madsen
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Owner
- Name: Andreas Madsen
- Login: AndreasMadsen
- Kind: user
- Location: Copenhagen, Denmark
- Company: MILA
- Website: https://andreasmadsen.github.io/
- Twitter: andreas_madsen
- Repositories: 151
- Profile: https://github.com/AndreasMadsen
Researching interpretability for Machine Learning because society needs it.
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 0
- Total pull requests: 4
- Average time to close issues: N/A
- Average time to close pull requests: 2 days
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 1.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- WanXcodinG (7)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- npm 438 last-month
- Total dependent packages: 2
- Total dependent repositories: 1
- Total versions: 1
- Total maintainers: 1
npmjs.org: indexof-surrounding
Like indexOf but looks at surrounding items
- Homepage: https://github.com/AndreasMadsen/indexof-surrounding#readme
- License: MIT
-
Latest release: 0.2.2
published almost 5 years ago
Rankings
Maintainers (1)
Dependencies
- tap 0.6.x development