---
title: "Peter Scheler (@lichtjaeger) | Hashnode"
description: "JS enthusiast. Read the latest articles by Peter Scheler on Hashnode."
url: "https://hashnode.com/@lichtjaeger"
---

@lichtjaeger

# Peter Scheler

@lichtjaeger · Germany · Joined February 2016

JS enthusiast

## Comments

[Some little addition: If you really never want to use semicolons you can also write void \[1, 2, 3\].forEach(bar) instead of ;\[1, 2, 3\].forEach(bar)](https://hashnode.com/posts/using-semicolons-never-use-them/5d51469c5f3136f06a2584fe/comment/5d552a147b286e94484b9b81)

Comment · Article · Aug 15, 2019 · [Using Semicolons? Never Use Them!](https://hashnode.com/posts/using-semicolons-never-use-them/5d51469c5f3136f06a2584fe)

[I'm a mechatronics guy. So, if I would start a blog, it would result in a mix of OSS (Open Source Software) and OSH (Open Source Hardware). Maybe this contradicts to Hashnodes software concentrated audience. Is an overarching thematic spectrum welcome? Or off-topic articles?](https://hashnode.com/posts/high-voltage-alpha-preview-launch-your-developer-blog-using-hashnodedev/5c8900c4ca05e42e6ea2304b/comment/5c89f74f52c024080e5760d7)

Comment · Article · Mar 14, 2019 · [⚡️ \[Alpha Preview\] Launch your developer blog using hashnode.dev](https://hashnode.com/posts/high-voltage-alpha-preview-launch-your-developer-blog-using-hashnodedev/5c8900c4ca05e42e6ea2304b)

[The 3 options have nothing in common. JQuery is a library, Angular is a framework and Node is a runtime environment.](https://hashnode.com/forums/thread/which-is-best-jquery-or-angular-in-javascript/comment/5c3c24aebdb6d3fc3a20b7be)

Comment · Thread · Jan 14, 2019 · [Which is best jQuery or Angular in JavaScript](https://hashnode.com/forums/thread/which-is-best-jquery-or-angular-in-javascript)

[I use both and in addition also #rgba and #rrggbbaa.](https://hashnode.com/forums/thread/do-you-use-rgb-as-opposed-to-rrggbb/comment/5be558d87fb1f133311e0b14)

Comment · Thread · Nov 9, 2018 · 1 · [Do you use #rgb as opposed to #rrggbb?](https://hashnode.com/forums/thread/do-you-use-rgb-as-opposed-to-rrggbb)

[They are the best JS books I know. They are written really beginner friendly but also cover advanced topics and insides of JS. Ideal if you're coming from another language. If JS is your first programming language you maybe should combine it with practical learning resources like Nodeschool. But it is definitely a must read.](https://hashnode.com/forums/thread/you-dont-know-js-book-series-whats-your-review/comment/5bc585382b0beef1251f5e15)

Comment · Thread · Oct 16, 2018 · 1 · ["You don't know JS" book series. What's your review?](https://hashnode.com/forums/thread/you-dont-know-js-book-series-whats-your-review)

[What you want is to map. Not to filter. A filter only reduces the number of values in an array. const c = observers1.filter(item => a1 === a2) const observers = observers1.map(item => "hello") console.log(c) // \[ 1, 2, 3, 5 \] console.log(observers) // \[ 'hello', 'hello', 'hello', 'hello' \]​​​​​](https://hashnode.com/forums/thread/filter-method-in-javascript/comment/5bc42db4548e89cf602ced29)

Comment · Thread · Oct 15, 2018 · [filter method in javascript](https://hashnode.com/forums/thread/filter-method-in-javascript)

[No, it's not. function Product(name, price) { this.name = name this.price = price } function Toy1(name, price) { Product.call(this, name, price) this.category = 'toy' } function Toy2(name, price) { Product.call(name, price) this.category = 'toy' } const robot1 = new Toy1('robot', 40) const robot2 = new Toy2('robot', 40) console.log(robot1) //​​​​​Toy1 { name: 'robot', price: 40, category: 'toy' } console.log(robot2) //Toy2 { category: 'toy' }​​​​​ Please try to consult the documentation first if you don't understand something. Toy2 will create a Product on the name String, not on your new object.](https://hashnode.com/forums/thread/call-method-in-javascript/comment/5bc42be9548e89cf602ced23)

Comment · Thread · Oct 15, 2018 · 3 · [call method in javascript !!](https://hashnode.com/forums/thread/call-method-in-javascript)

[const list = \[ { "a": "2", "ss": \[ { "name": "pourush", "age": "25" }, { "name": "Mak", "age": "25" } \] }, { "b": "3", "ss": \[ { "name": "James", "age": "19" }, { "name": "shaun", "age": "20" } \] } \] function scan(list, key) { return list.reduce((a, b) => { let obj = b\[key\] || \[\] return a.concat(obj) }, \[\]) } console.log(scan(list, 'ss')) This is more dynamic. It also works with "a" or "b".](https://hashnode.com/forums/thread/how-to-filter-array-of-objects-which-contains-another-array-of-objects-and-extract-out-that-objects/comment/5bbb014e8a9ae48460400d89)

Comment · Thread · Oct 8, 2018 · 2 · [How to filter array of objects which contains another array of objects and extract out that objects ?](https://hashnode.com/forums/thread/how-to-filter-array-of-objects-which-contains-another-array-of-objects-and-extract-out-that-objects)

[Try this: /<gravitDesigner(?:\[^<\]\*?\\/>|(?:.|\\s)\*?<\\/gravitDesigner.\*?>)/gm](https://hashnode.com/forums/thread/what-is-the-regex-for-these-complex-metadata-which-contain-elements-ids-xml-and-base64/comment/5bb1b8d9da58da392cbace49)

Comment · Thread · Oct 1, 2018 · 2 · [What is the regex for these complex metadata which contain elements, ids, XML and base64?](https://hashnode.com/forums/thread/what-is-the-regex-for-these-complex-metadata-which-contain-elements-ids-xml-and-base64)

[Node is the runtime for JS and Rails is a framework for Ruby, so I don't understand your options. Do you ask for the best language or a framework independent of languages?](https://hashnode.com/forums/thread/what-framework-should-i-choose-for-api-only-application/comment/5b7531f7390bffba0179f7bc)

Comment · Thread · Aug 16, 2018 · 2 · [What framework should I choose for API only application?](https://hashnode.com/forums/thread/what-framework-should-i-choose-for-api-only-application)
