Note: here is a list (not complete) of valuable resources used on Grammarly web projects. Here, you may find our public talks and blog posts.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
export default class extends React.Component { | |
static defaultProps = { | |
onChange: function (e) { }, | |
nativeProps: {} | |
} | |
static propTypes = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Описание задачи: Напишите функцию, которая создаст массив из уникальных значений, которые есть в каждом из предоставленных массивов. | |
* Ожидаемый результат: ([1, 2], [2, 3]) => [2] | |
* Сложность задачи: 4 of 5 | |
* @param {?} arrays - Массив примитивных значений | |
* @returns {Array} | |
*/ | |
const intersection = (...arrays) => { | |
let result = arrays[0].filter(el => arrays[1].includes(el)) | |
if (arrays.length > 2) intersection(result, ...arrays.slice(2)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>Text and pictures are from https://wikipedia.org.</p> | |
<h3>All images with <code>data-src</code> load when become visible.</h3> | |
<h1>Solar system</h1> | |
<p>The Solar System is the gravitationally bound system comprising the Sun and the objects that | |
orbit it, either directly or indirectly. Of those objects that orbit the Sun directly, | |
the largest eight are the planets, with the remainder being significantly smaller objects, | |
such as dwarf planets and small Solar System bodies. |
NewerOlder