Javascript arguments are stored in an array like structure where indicies can be accesses using bracket notation, however none of the objects properties are available except length.
function args(){
return arguments;
}| function onEditHandler(e) { | |
| try { | |
| // 1. Determine what was edited | |
| const range = e.range; | |
| const row = range.getRow(); | |
| const col = range.getColumn(); | |
| // 2. Check if the edited cell is in column C (col = 3) | |
| if (col === 3) { | |
| const sheet = range.getSheet(); |
| ;; Container views (usally in seperate views | |
| (defn home | |
| [{:keys [route-key path-parms query-params]}] | |
| [:div "Home"]) | |
| (defn sign-in | |
| [{:keys [route-key path-parms query-params]}] | |
| [:div "Sign In"]) |
| {:deps {org.clojure/clojurescript {:mvn/version "1.10.520"} | |
| lilactown/hx {:local/root "../../opensource/hx"} | |
| com.bhauman/figwheel-main {:mvn/version "0.2.0"} | |
| com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}} | |
| :paths ["src" "resources" "target"] | |
| :aliases {:build {:main-opts ["--main" "cljs.main" | |
| "--compile-opts" "prod.cljs.edn" | |
| "--compile"]} | |
| :dev {:main-opts ["--main" "figwheel.main" |
| { | |
| "global-coords": [ | |
| 6, | |
| 6 | |
| ], | |
| "arena": [ | |
| [ | |
| { | |
| "contents": { | |
| "type": "open", |
| export const REQUEST_DELETE_USER = 'REQUEST_DELETE_USER'; | |
| export const USER_REMOVE_USER = 'USER_REMOVE_USER'; | |
| export const removeUser = (userId) => { | |
| return (dispatch, getState) => { | |
| // The middleware picks up on the following signature | |
| // | |
| // 1. request prop | |
| // 2. request prop is thenable | |
| // |
| import { append, equals, map, merge, omit, pluck, prepend, reject, zipObj } from 'ramda'; | |
| /** | |
| * @method itemByKey | |
| * | |
| * pulls an items key and asigns itself to its key | |
| */ | |
| export const itemByKey = (item, key = '_id') => { | |
| return { [item[key]]: item }; | |
| }; |
| (ns battlebots.constants.arena) | |
| (def arena-key {:open {:type "open" | |
| :display " " | |
| :transparent true} | |
| :ai {:type "ai" | |
| :display "@" | |
| :transparent true | |
| :energy 20} | |
| :block {:type "block" |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
Javascript arguments are stored in an array like structure where indicies can be accesses using bracket notation, however none of the objects properties are available except length.
function args(){
return arguments;
}