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
// type | |
function typeOf(elem) { | |
return {}.toString.call(elem).slice(8, -1).toLowerCase(); | |
} | |
typeOf(123) //number | |
typeOf("123") //string | |
typeOf(function fn() {}) //function | |
typeOf({k: 123}) //object |
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
-- phpMyAdmin SQL Dump | |
-- version 4.6.5.2 | |
-- https://www.phpmyadmin.net/ | |
-- | |
-- Host: 127.0.0.1 | |
-- Generation Time: Feb 10, 2017 at 01:10 AM | |
-- Server version: 10.1.21-MariaDB | |
-- PHP Version: 7.1.1 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |