Skip to content

Instantly share code, notes, and snippets.

// check type args to return object | array | function
function getType(obj) {
const str = Object.prototype.toString.call(obj);
const map = {
'[object Boolean]': 'boolean',
'[object Number]': 'number',
'[object String]': 'string',
'[object Function]': 'function',
'[object Array]': 'array',
'[object Date]': 'date',
@Truongvu2801
Truongvu2801 / simple-pagination.js
Created May 13, 2021 07:54 — forked from kottenator/simple-pagination.js
Simple pagination algorithm
// Implementation in ES6
function pagination(c, m) {
var current = c,
last = m,
delta = 2,
left = current - delta,
right = current + delta + 1,
range = [],
rangeWithDots = [],
l;

Writing test

Product UI/UX:

Picture 1:

  • The menu title is set horizontally
  • Fontsize is small
  • The name of the picture is the same color tone with back ground color

Picture 2:

  • Font size, background color is not the same
  • Menu Icon to big
# Writing test
## Question 1:
* list 1
* list 2
## Question 4:
```