JavaScript
JavaScript (JS) is a lightweight interpreted or JIT-compiled programming language with first-class functions. While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.js, Apache CouchDB and Adobe Acrobat. JavaScript is a prototype-based, multi-paradigm, dynamic language, supporting object-oriented, imperative, and declarative (e.g. functional programming) styles.
Here are 97,455 public repositories matching this topic...
What problem does this feature solve?
It would allow us to use numbers which is larger than MAX_SAFE_INTEGER.
What does the proposed API look like?
In HTML, {{BigInt("100")}}, {{100n}}, {{2n * 50n}} or {{50n + 50n}} should show "100" (it can be just simply string by using .toString()) at frontend.
At the moment using BigInt in "Mustache" syntax just throw error.
Sure, backu
React extension version: 4.4.0
Steps To Reproduce
- Install Firefox 72.0.2x64
- Go to Discordapp.com
The current behavior
Extension reports: "This page does not appears to be using React"
The expected behavior
React is detected (just like it is currently in Chrome/Chromium)
In twbs/bootstrap#30414 we discovered the skip links do not look that well if backported to v4:

We could also improve the theming in v5, in some viewports, it also covers a critical part of the navbar
 {
return null;
}
if (!setA.length || !setB.length) {
return [];
}
// or do nothing since the for loop will not trigger anyway
- Version: v10.x
- Platform: all
- Subsystem: repl
What steps will reproduce the bug?
$ node
> function foo() {
... let n = 10n;
Thrown:
let n = 10n;
^
SyntaxError: Unexpected end of input
>
How often does it reproduce? Is there a required condition?
Reproduces all the time.
What is the expected behavior?
Should not cause an
Description of the problem
It seems lack of some properties in MeshPhysicalMaterial document.
https://threejs.org/docs/#api/en/materials/MeshPhysicalMaterial
Ever what I noticed are
- clearcoatNormalScale
- clearcoatNormalMap
- sheen
- transparency
We should update.
Three.js version
- Dev
- r113
- ...
Browser
- All of them
- [ ]
https://material-ui.com/components/menus/#simple-menu states:
Simple menus open over the anchor element by default (this option can be changed via props).
How can this be changed via props? The page doesn't say. I went to the Menu API page, and I don't see anything simple like open: 'below', or an offset.
Developers have been struggling to figu
-
Updated
Jun 23, 2020 - JavaScript
Bug report
Documentation Is:
- Missing or needed
- Confusing
- Not Sure?
Please Explain in Detail...
I needed to produce a number of charts with a consistent yAxes logarithmic scale so that users can compare between charts.
I tried setting the same yAxes config settings for each chart:
beginAtZero: true
ticks
Express uses hardcoded values for debug namespace, for example:
https://github.com/expressjs/express/blob/b69b7605b07b41273acc931d25ab585377bcd107/lib/router/index.js#L20
and it is extremly hard to determine in output where things are happening while doing TDD on microservices architecture. It would be nice to allow to specify prefix for namespace, i.e. per microservice which is an express app.
Given the immense popularity of Docker and the need to harden it different per platform (see ideas below) - we'd like to start writing a Docker best practices section.
You're welcome to contribute ideas and write best practices - writing and brainstorming will people is an amazing way to deepen your Docker understanding.
At first, we want to collect ideas for best practices, solidify a list
-
Updated
Jul 4, 2020 - JavaScript
const customizer = console.log // returns undefined => merging is handled by `mergeAllWith`
// good
mergeAll([{ a: 1 }, { b: 2 }]) // { a: 1, b: 2 }
mergeAllWith(customizer, [{ a: 1 }, { b: 2 }]) // { a: 1, b: 2 }
// A-OK; customizer logs the following:
// undefined 2 "b" Object { a: 1, b: 2 } Object { b: 2 } undefined
// bad
mergeAll({}, { a: 1 }, { b: 2 }) // { a: 1, b: 2 }; OUSome of the issues below are already mentioned in other tickets, but I have the feeling that a proper generic issue is due to give it visibility, as for now the current package is unusable for many users.
- The typescript package doesn't respect the tsconfig flags, and many of them are hardcoded inside the meteor/babel package.
I understand that meteor needs to control some compilation option
Do you want to request a feature or report a bug?
feature request
What is the current behavior?
Currently yarn why won't indicate any package info in the resolutions field
If the current behavior is a bug, please provide the steps to reproduce.
- install a package with any version, e.g
"pkg": "^1.0.0" - add
resolutionsfield in package.json,pkg: "1.0.0" - upd
Expected Behavior
Responsive Videos should show a video on documentation site.
Current Behavior
It says there is good resources and the first title on the landing page says that those practices are bad and should not be used any more. Maybe find something else to link to make that point?
Prettier supports EditorConfig, but the docs are almost silent about this fact. In particular:
- the "Options" page must specify which options and how can be set via EditorConfig,
- the "Configuration File" page should mention EditorConfig somewhere.
See also https://gi
Minor thing, but would be nice to be able to get to dev tools without right click + Inspect, especially when menu is shown by the app on right click.
NWJS Version : 0.45.1
Operating System : macOS Catalina
Expected behavior
Devtools menu item or command + option + I should open dev tools
Actual behavior
It works in nw1 mode, but not in nw2, has been like that for a whil
I have created a serverless project for python on AWS, which works fine... until I try to re-use the project directly after checkout. Any CLI command exits with the following error:
sls help
Serverless Error ---------------------------------------
Serverless plugin "serverless-python-requirements" not found. Make sure it's installed and listed in the "plugins" section of your ser
🐛 bug report
loadConfig should emit a codeframe on a parse error:
This is for example used for loading .postcssrc.
🤔 Expected Behavior
See screenshot in parcel-bundler/parcel#4420
😯 Current Behavior
With an invalid `.p
When you're logged in as E.g. an author, the admin panel isn't good at telling you why you can't edit a post. I've found two specific cases - the /edit URL and search, but I think they are both very similar.
To Reproduce
Case 1: search
- In admin search for a post you can't edit
- See the post listed in the results
- Click on the post
- You are taken to the posts list with no
集合 S 包含从1到 n 的整数。不幸的是,因为数据错误,导致集合里面某一个元素复制了成了集合里面的另外一个元素的值,导致集合丢失了一个整数并且有一个元素重复。
给定一个数组 nums 代表了集合 S 发生错误后的结果。你的任务是首先寻找到重复出现的整数,再找到丢失的整数,将它们以数组的形式返回。
示例 1:
输入: nums = [1,2,2,4]
输出: [2,3]
注意:
给定数组的长度范围是 [2, 10000]。
给定的数组是无序的。
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/set-mismatch
-
Updated
Jul 4, 2020 - JavaScript
Created by Brendan Eich
Released December 4, 1995
- Website
- developer.mozilla.org/en-US/docs/Web/JavaScript
- Wikipedia
- Wikipedia
Describe your problem and how to reproduce it:
This is expected to work, and it works in the preview.
There is a space before and after the
=symbol.