If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
| const removeEl = (el, query) => { | |
| if (el) { | |
| if (query) { | |
| el[query].remove(); | |
| } else { | |
| el.remove(); | |
| } | |
| } | |
| }; | |
| removeEl(document.querySelector("header")); |
| html { | |
| box-sizing: border-box; | |
| font-size: 16px; | |
| } | |
| *, *:before, *:after { | |
| box-sizing: inherit; | |
| margin: 0; | |
| padding: 0; | |
| } |
| const equalityCheck = function(input1, input2) { | |
| if (typeof input1 !== typeof input2) { | |
| return false; | |
| } | |
| if (input1 === input2) { | |
| return true; | |
| } | |
| if (Array.isArray(input1) && Array.isArray(input2)) { | |
| return input1.reduce((acc, el, index) => acc && el === input2[index], true); | |
| } |
| javascript:(function()%7Bconst%20%24html%20%3D%20document.querySelector(%22html%22)%3Bconst%20%24body%20%3D%20document.querySelector(%22body%22)%3B%24html.style.overflowY%20%3D%20%22scroll%22%3B%24html.style.overflow%20%3D%20%22scroll%22%3B%24body.style.overflowY%20%3D%20%22scroll%22%3B%24body.style.overflow%20%3D%20%22scroll%22%3Bdocument.querySelectorAll(%22*%22).forEach((el)%20%3D%3E%20%7Bconst%20cs%20%3D%20getComputedStyle(el)%3Bconst%20elPos%20%3D%20cs.position%3Bconst%20filter%20%3D%20cs.filter%3Bif%20(%5B%22fixed%22%2C%20%22sticky%22%5D.includes(elPos))%20%7Bel.parentNode.removeChild(el)%3B%7Dif%20(filter%20%26%26%20filter.match(%2Fblur%2F))%20%7Bel.style.setProperty(%22filter%22%2C%20%22none%22)%3B%7D%7D)%7D)() |
| / ............................................................ | |
| // .for | |
| .for(@i, @n) {.-each(@i)} | |
| .for(@n) when (isnumber(@n)) {.for(1, @n)} | |
| .for(@i, @n) when not (@i = @n) { | |
| .for((@i + (@n - @i) / abs(@n - @i)), @n); | |
| } | |
| // ............................................................ |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Sort Lines By Length</title> | |
| <style> | |
| .center { |
If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
| /** | |
| * Clones an object and retains the prototype chain | |
| * @param {Object} fromObj Object to be cloned | |
| * @returns {Object} Cloned Object | |
| */ | |
| function cloneObj(fromObj) { | |
| var toObj, i; | |
| if (fromObj && typeof fromObj === 'object') { | |
(function(){
var message = 'Hello Javascript';
console.log(message);
})();{
"11": {
"value": [3, 6, 8],| /** | |
| * Running the array reverse function on arguments object | |
| */ | |
| function reverseArgs(){ | |
| return Array.prototype.reverse.call(arguments); | |
| } | |
| reverseArgs(12,34,55); | |
| // OUTPUT | |
| // [55, 34, 12] |