js bitwise operators All In One
js bitwise operators All In One
js 位运算符
unary operators
一元运算符
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#unary_operators
!
Logical NOT operator.
逻辑非 运算符
~
Bitwise NOT operator
按位 非
运算符
Bitwise shift operators
位移运算符
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#bitwise_shift_operators
<<
Bitwise left shift operator.
按位左移运算符。
>>
Bitwise right shift operator.
按位右移运算符。
>>>
Bitwise unsigned right shift operator.
按位无符号
右移运算符。
Binary bitwise operators
二进制位运算符
&
Bitwise AND.
按位与
运算符
|
Bitwise OR.
按位或
运算符
^
Bitwise XOR.
按位异或
运算符
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#binary_bitwise_operators
Binary logical operators
二元逻辑运算符
&&
Logical AND.
||
Logical OR.
??
Nullish Coalescing Operator.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#binary_logical_operators
import.meta
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import.meta
demo
_curry
https://github.com/lodash/lodash/blob/4.17.15/lodash.js#L5528
if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
}
https://github.com/lodash/lodash/blob/4.17.15/lodash.js#L10198
https://github.com/lodash/lodash/blob/4.17.15/lodash.js#L5488
https://www.npmjs.com/package/lodash.curry
js currying function / js 柯里化 函数
https://zh.javascript.info/currying-partials
refs
https://zzk.cnblogs.com/my/s/blogpost-p?Keywords=bitwise
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators
©xgqfrms 2012-2020
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/16743011.html
未经授权禁止转载,违者必究!