{"action":"opened","issue":{"url":"https://api.github.com/repos/DAVFoundation/xplore/issues/88","repository_url":"https://api.github.com/repos/DAVFoundation/xplore","labels_url":"https://api.github.com/repos/DAVFoundation/xplore/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/DAVFoundation/xplore/issues/88/comments","events_url":"https://api.github.com/repos/DAVFoundation/xplore/issues/88/events","html_url":"https://github.com/DAVFoundation/xplore/issues/88","id":301508503,"number":88,"title":"refactor splice function (first-timers-only)","user":{"login":"cg-cnu","id":2767425,"avatar_url":"https://avatars0.githubusercontent.com/u/2767425?v=4","gravatar_id":"","url":"https://api.github.com/users/cg-cnu","html_url":"https://github.com/cg-cnu","followers_url":"https://api.github.com/users/cg-cnu/followers","following_url":"https://api.github.com/users/cg-cnu/following{/other_user}","gists_url":"https://api.github.com/users/cg-cnu/gists{/gist_id}","starred_url":"https://api.github.com/users/cg-cnu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cg-cnu/subscriptions","organizations_url":"https://api.github.com/users/cg-cnu/orgs","repos_url":"https://api.github.com/users/cg-cnu/repos","events_url":"https://api.github.com/users/cg-cnu/events{/privacy}","received_events_url":"https://api.github.com/users/cg-cnu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-01T18:20:50Z","updated_at":"2018-03-01T18:20:50Z","closed_at":null,"author_association":"MEMBER","body":"# first-timers-only\r\n\r\nThis issue is tagged :octocat: **first-timers-only**. It is only for people who have never contributed to open source before and are looking for an easy way take their first steps.\r\n\r\nConsider this as your chance to dip your toe into the world of open-source and get some bragging rights for writing code that makes drones fly, cars find charging stations, helps people and goods move from place to place and more...\r\n\r\nFind more **first-timers-only** issues from DAV Foundation [here](https://github.com/search?q=org%3ADAVFoundation+is%3Aissue+is%3Aopen+label%3Afirst-timers-only).\r\n\r\nThank you for your help :heart:\r\n\r\n## What is this project?\r\n\r\nDAV (Decentralized Autonomous Vehicles) is a new non-profit foundation working to build an open-source infrastructure for autonomous vehicles (cars, drones, trucks, robots, and all the service providers around them) to communicate and transact with each other over blockchain.\r\n\r\nAs an organization that believes in building a large community of open-source contributors, we often create issues like this one to help people take their first few steps into the world of open source.\r\n\r\n### Xplore\r\n\r\nThe DAV project you are looking at is Xplore. Xplore is a blockchain explorer you can run on your machine to explore local Ethereum nodes on your machine. It is used by developers working with DAV's libraries to ease development and see how the blockchain is affected by their work.\r\n\r\n## How you can help\r\n\r\n### The Issue\r\n\r\nThe task for this issue is to improve the logic at the line https://github.com/DAVFoundation/xplore/blob/master/src/lib/utils.js#L11.\r\n\r\nCurrently its using the slice syntax \r\n`truncated += text.slice(text.length - trailingCharacterCount, text.length);` which can be further improved. You can replace it with \r\n` truncated += text.slice(- trailingCharacterCount);`\r\n\r\nYou can read more about the splice function [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice).\r\n\r\n### Contributing to Xplore\r\n\r\n- [ ] Make sure this issue is labeled `up-for-grabs` and not labeled `claimed`, to verify no one else is working on it.\r\n- [ ] Comment in this issue that you would like to do it.\r\n- [ ] Open the [Xplore GitHub page](https://github.com/DAVFoundation/xplore) and click the ★ Star and then ⑂ Fork buttons.\r\n- [ ] Clone a copy to your local machine with `$ git clone git@github.com:YOUR-GITHUB-USER-NAME/xplore.git`\r\n- [ ] **Edit the README.md file**\r\n- [ ] Once you've made sure all your changes work correctly and committed all your changes, push your local changes back to github with `$ git push -u origin master`\r\n- [ ] Visit your fork on GitHub.com ([https://github.com/YOUR-USER-NAME/xplore](https://github.com/YOUR-USER-NAME/xplore)) and create a pull request for your changes.\r\n- [ ] Make sure your pull request describes exactly what you changed and references this issue (include the issue number in the title like this: `#5`)\r\n- [ ] Please do not fix more than one issue at a time. Your pull request should only fix what is described in this issue.\r\n\r\n### Asking for help\r\n\r\nWe appreciate your effort in taking the time to work on this issue and help out the open source community and the foundation. If you need any help, feel free to ask below or in our [gitter channel](https://gitter.im/DAVFoundation/DAV-Contributors). We are always happy to help 😄"}}
{"actor":{"display_login":"cg-cnu"}}