This file contains hidden or 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 {getStore} from '../tools/connect'; | |
import {flattenError} from '../tools/index'; | |
import {environment} from '../configs'; | |
import keysToCamel from './keysToCamel'; | |
import mock from './mock'; | |
import getApiPath from './getApiPath'; | |
export {getApiPath}; | |
const callApi = (path, options) => { |
This file contains hidden or 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
// Напишите функцию sum, которая бы работала следующим образом: | |
sum(1)(2) == 3; // 1 + 2 | |
sum(1)(2)(3) == 6; // 1 + 2 + 3 | |
sum(5)(-1)(2) == 6; | |
sum(6)(-1)(-2)(-3) == 0; | |
sum(0)(1)(2)(3)(4)(5) == 15; | |
// Вызовите функцию test, передав такую функцию, чтобы в результате в консоли приложения было выведено | |
// test 1 | |
// test 2 |
This file contains hidden or 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
service cloud.firestore { | |
match /databases/{database}/documents { | |
match /user/{userId}/{document=**} { | |
allow create, read, update, delete: if request.auth.uid == userId; | |
} | |
} | |
} |